-
Notifications
You must be signed in to change notification settings - Fork 204
creating a new context with an existing trace context is not working as expected #1572
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
Comments
Do you mean this this line null? If I have understood correctly, you want to use an existing context propagation mechanism (for example the otel TraceParent one), and then selectively apply Instana headers on top of that? |
@brettmc , this line returns null. I want to keep the current traceid and spanid from the span context and update the trace flags only as part of instana headers. For example I should be able to create a new remote parent from root traceid and spanid but trace flags to be 1. New span should be |
I think what you're hoping for is that the |
I think this can be closed now, since you've taken a different path in the PR. |
I am looking for the way to create a new context with an existing context but with updated TraceFlags.
I am writting my own extract() function and trying to understand how I can create new context with the current context.
For example if my propagator FIELDS has 3 headers
x-span
,x-trace
andx-sampled
.If only the
x-sampled
header is present, the function should extract the context and keep the existing traceid and spanid (if available) but update the sampled flag.I am trying this way but I am getting currentContext as null:
Tetscase:
The text was updated successfully, but these errors were encountered: