Closed sentrivana closed 1 week ago
Tests completed | Failed | Passed | Skipped |
---|---|---|---|
19831 | 1613 | 18218 | 4413 |
tests.test_scope test_with_isolation_scope_data
Flake rate in main: 99.11% (Passed 2 times, Failed 223 times)
Stack Traces | 0.001s run time
> > ```python > tests/test_scope.py:387: in test_with_isolation_scope_data > assert scope._tags == {"before_isolation_scope": 1} > E AssertionError: assert {} == {'before_isolation_scope': 1} > E > E Right contains 1 more item: > E {'before_isolation_scope': 1} > E > E Full diff: > E + {} > E - { > E - 'before_isolation_scope': 1, > E - } > ```
To view more test analytics, go to the Test Analytics Dashboard Got feedback? Let us know on Github
Making this a draft, will try to fix sampler-related asgi tests here too
Replace
custom_sampling_context={"asgi_scope": scope}
with several span attributes. Also, addsampling_context["transaction_context"]["source"]
, which was previously missing.With the switch to OTel,
custom_sampling_context
can't continue to work as before. We've opted for making all necessary data accessible in thetraces_sampler
via span attributes instead. In order to use span attributes, we need to unpack any objects with serializable OTel-friendly data.Part of https://github.com/getsentry/sentry-python/issues/3746