-
Notifications
You must be signed in to change notification settings - Fork 793
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
OpenTracing Shim: ScopeManager.Activate can throw if span is not sampled #4728
Labels
bug
Something isn't working
Comments
This issue was marked stale due to lack of activity and will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this issue is still a concern. |
This is still a problem. |
@konczykl, would you like to contribute some fixes? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current implementation of
ScopeManager
uses aConditionalWeakTable
to associate anActivity
to aSpanShim
. However, if theActivity
used by the shim is not being sampled the associatedActivity
will be the singletonTelemetrySpan.NoopInstance
and theAdd
method onConditionalWeakTable
will throw an exception. Repro test: 57845b2#diff-64d0dfb854bfa159bf2bfd49d7349af30848d52f4b9147e47e423b1e2d3399adL31The text was updated successfully, but these errors were encountered: