-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add option to ignore invalid parent spans #1178
Conversation
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, will let @cretz take a look
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.
@cdavis-joy - I think the better approach to supporting multiple tracer interceptors is to set the SpanContextKey
and HeaderKey
different for each. Then multiple tracing interceptors can be provided until you're ready to remove one.
But since this is opt-in, this addition is harmless. Will leave open to hear your thoughts on just setting different keys, then will merge.
@cretz that's a good call. I would agree with you, but I'm failing to understand why were encountering an issue in the first place if the
That said, I appreciate the merge, and don't feel we need to dwell on this unless you know off the top of your head what we might be doing wrong to get that failure. 🙏 |
Because |
d8d4778
to
957d834
Compare
957d834
to
9d3a161
Compare
Missed adding this to the otel interceptors |
@cretz I misunderstood what you initially said. By changing the |
This is something I'd still like to see as an option. It looks like these integration test failures are unrelated though? |
Let me do a re-run and see. If/when it passes, we'll merge. |
What was changed
Adds an option to ignore errors when interpreting parent spans from headers.
Why?
When migrating from one tracing library to another, the new library will not find the parent span headers it expects, and will throw an errors, thus failing any workflows/activities that were running at the time of the worker deploy.
Checklist
Closes Allow ignoring invalid SpanContext in OpenTelemetry TracingInterceptor #1174
How was this tested:
Forced an error to return from t.readSpanFromHeader, and saw that error was not returned.
Comment added to option.