-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Tracing Instrumentation] Add instrumentation at Local Transport Layer #10291
Comments
The Local Transport uses context preservation (from the thread pool) and the trace context propagation is working as expected, closing this for now. |
While analyzing the span context propagation through ThreadContext, I have found 2 issues that need to be discussed.
|
Thanks @Gaganjuneja
We need the hand off to propagate parent relationship only. Thinking out loud here, if any thread was handed off the parent span, it should (unless specifically told not to) use it for further spans creation, but it should not do anything with it - I think it corresponds to option
Important note here: span creation does not do anything to context, only creating the explicit span scope does context manipulation. With the example you've described, I don't see this boundary, could you express it in terms of span & scopes please?
Correct, there seems to be an issue, may be |
Yes for the scheduled runnable. |
To me the example is straightforward: span11 / span12 / span13 should have no parent (assuming that |
Agreed. But today, span11 will have spanA parent and span12 and span13 will be the root spans. |
Gotcha, so I converted that to test cases and see the problem in case when void method() was is executed in scoped span (not what I've assumed). I think I understand the problem and how to fix it in #11316 |
We need newStoreContext to propagate the span in most of the cases except scheduled tasks. I will raise a PR for it. |
Is your feature request related to a problem? Please describe.
Add tracing/instrumentation at LocalTransport layer.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: