File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def traces_sampler(sampling_context):
217217 assert sampling_context ["dog.activity" ] == "fetch"
218218 return 1.0
219219
220- sentry_init (traces_sample_rate = 1.0 , traces_sampler = traces_sampler )
220+ sentry_init (traces_sampler = traces_sampler )
221221
222222 with sentry_sdk .continue_trace (
223223 {"sentry-trace" : "12312012123120121231201212312012-1121201211212012-1" }
@@ -228,18 +228,6 @@ def traces_sampler(sampling_context):
228228 pass
229229
230230
231- def test_passes_attributes_from_start_span_to_traces_sampler (
232- sentry_init , DictionaryContaining # noqa: N803
233- ):
234- traces_sampler = mock .Mock ()
235- sentry_init (traces_sampler = traces_sampler )
236-
237- with start_span (attributes = {"dogs" : "yes" , "cats" : "maybe" }):
238- traces_sampler .assert_called_once_with (
239- DictionaryContaining ({"dogs" : "yes" , "cats" : "maybe" })
240- )
241-
242-
243231def test_sample_rate_affects_errors (sentry_init , capture_events ):
244232 sentry_init (sample_rate = 0 )
245233 events = capture_events ()
You can’t perform that action at this time.
0 commit comments