-
Notifications
You must be signed in to change notification settings - Fork 552
Remove scope.span =
setter and make sure scope.span
reference is correct in context manager regardless of source of span
#4439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -280,10 +279,6 @@ def __enter__(self): | |||
# set as the implicit current context | |||
self._ctx_token = context.attach(ctx) | |||
|
|||
# get the new scope that was forked on context.attach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is now done universally in the context manager instead of here which would just affect the sentry created spans
rust_tracing.new_span(RustTracingLevel.Info, 3) | ||
current_span = sentry_sdk.get_current_span() | ||
assert current_span is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just INVALID_SPAN
before so this test wasn't correct anyway
f01cb0f
to
605a673
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## potel-base #4439 +/- ##
==============================================
- Coverage 84.81% 84.80% -0.02%
==============================================
Files 144 144
Lines 14726 14725 -1
Branches 2342 2343 +1
==============================================
- Hits 12490 12487 -3
Misses 1523 1523
- Partials 713 715 +2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm but please check failing tests
605a673
to
32ec148
Compare
correct in context manager regardless of source of span.
32ec148
to
5dba74b
Compare
closes #3509