-
Notifications
You must be signed in to change notification settings - Fork 881
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
Always check if valid span returned from HttpClientTracer.startSpan #904
Comments
Should we automatically return a no-op scope when starting one with invalid span? |
#893 revealed a few places that complicate things, in particular where we can't(?) do context injection inside of our i sort of like the idea of having a consistent template (e.g. check but i'm also concerned about the growing size of our "consistent template"
|
Since injection should also be no-op for an invalid span, it looks like these work OK even if the span is invalid. There's a bit of overhead though due to the execution of the no-op methods but I guess it keeps things simple? |
this is a really good point 👍 |
We need to check everywhere if the span returned from TRACER.startSpan() is invalid before starting a scope with it.
Tracking issue for #893 (review)
Relates to #465
The text was updated successfully, but these errors were encountered: