@@ -82,7 +82,7 @@ def disabled(cls):
82
82
"""Creates a guarnateed to be disabled client."""
83
83
return cls (NO_DSN )
84
84
85
- def _prepare_event (self , event , scope , hint = None ):
85
+ def _prepare_event (self , event , hint , scope ):
86
86
if event .get ("timestamp" ) is None :
87
87
event ["timestamp" ] = datetime .utcnow ()
88
88
@@ -137,7 +137,7 @@ def _is_ignored_error(self, event, hint=None):
137
137
138
138
return False
139
139
140
- def _should_capture (self , event , scope = None , hint = None ):
140
+ def _should_capture (self , event , hint = None , scope = None ):
141
141
if (
142
142
self .options ["sample_rate" ] < 1.0
143
143
and random .random () >= self .options ["sample_rate" ]
@@ -149,15 +149,15 @@ def _should_capture(self, event, scope=None, hint=None):
149
149
150
150
return True
151
151
152
- def capture_event (self , event , scope = None , hint = None ):
152
+ def capture_event (self , event , hint = None , scope = None ):
153
153
"""Captures an event."""
154
154
if self ._transport is None :
155
155
return
156
156
rv = event .get ("event_id" )
157
157
if rv is None :
158
158
event ["event_id" ] = rv = uuid .uuid4 ().hex
159
- if self ._should_capture (event , scope , hint ):
160
- event = self ._prepare_event (event , scope , hint )
159
+ if self ._should_capture (event , hint , scope ):
160
+ event = self ._prepare_event (event , hint , scope )
161
161
if event is not None :
162
162
self ._transport .capture_event (event )
163
163
return rv
0 commit comments