Skip to content
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

CorrelationsContext does not work from the client #1530

Closed
rvowles opened this issue Aug 11, 2020 · 7 comments · Fixed by #1771
Closed

CorrelationsContext does not work from the client #1530

rvowles opened this issue Aug 11, 2020 · 7 comments · Fixed by #1771
Assignees
Labels
Feature Request Suggest an idea for this project priority:p1 Critical issues and bugs. Highest priority; breaking API changes. release:required-for-ga Required for 1.0 GA release

Comments

@rvowles
Copy link

rvowles commented Aug 11, 2020

Is your feature request related to a problem? Please describe.
I have come from OpenTracing and I would like to use OpenTelemetry in a complete replacement. I am advocating it for use in passing feature flag state from clients to servers so they propagate through the infrastructure (which we do for OpenTracing). However, with the Java implementation (instrumentation) this simply doesn't work.

This for example with the Jaeger libraries and OpenTracing works fine, baggage appears:

curl -v -H "jaeger-debug-id: 11" -H "uberctx-fhub.FEATURE_TITLE_TO_UPPERCASE: true" -H 'content-type: application/json' http://localhost:8099/todo/list

With OpenTelemetry replacing it, this doesn't work:

curl -v -H 'traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01' -H 'otcorrelations: FEATURE_TITLE_TO_UPPERCASE=true' -H 'content-type: application/json' http://localhost:8099/todo/list

I can see the span and parent and so forth all turning up, but the CorrelationContext is always empty.

OpenTelemetry.getCorrelationContextManager().getCurrentContext().getEntries()

Describe the solution you'd like
Either this to work or some indication as to why it isn't working or I have it completely wrong and it will never work.

Describe alternatives you've considered
I'm not aware apart from sticking with OpenTracing what other options there are.

Additional context
Add any other context or screenshots about the feature request here.

@rvowles rvowles added the Feature Request Suggest an idea for this project label Aug 11, 2020
@jkwatson
Copy link
Contributor

Hi @rvowles . This definitely hasn't been implemented yet. I think it's currently held up by this spec issue: open-telemetry/opentelemetry-specification#536

It definitely needs to be addressed before GA, so I will tag it as such.

Thanks for highlighting this! I had forgotten this was still not done.

@jkwatson jkwatson added release:required-for-ga Required for 1.0 GA release blocked:spec blocked on open or unresolved spec labels Aug 11, 2020
@rvowles
Copy link
Author

rvowles commented Aug 11, 2020

Thanks - the implication in that issue is they have settled on the header "Baggage" and are just waiting on the process to move its inexorable way through the w3c process.

@jkwatson
Copy link
Contributor

Thanks - the implication in that issue is they have settled on the header "Baggage" and are just waiting on the process to move its inexorable way through the w3c process.

I think that's the case, but I haven't really been following it all that closely, TBH.

@jkwatson jkwatson added the priority:p1 Critical issues and bugs. Highest priority; breaking API changes. label Aug 12, 2020
@anuraaga
Copy link
Contributor

Hi @rvowles - are you using the OpenTelemetry agent? If so, I'm guessing this is a duplicate of open-telemetry/opentelemetry-java-instrumentation#973 - indeed we have no support for correlation context in the agent yet.

@jkwatson
Copy link
Contributor

@jkwatson jkwatson removed the blocked:spec blocked on open or unresolved spec label Aug 26, 2020
@rvowles
Copy link
Author

rvowles commented Aug 28, 2020

That spec is a bit odd? The description says it MUST use otcorrelations as the header and then the example uses otbaggages ?

@jkwatson
Copy link
Contributor

That spec is a bit odd? The description says it MUST use otcorrelations as the header and then the example uses otbaggages ?

I think there are still spec updates pending on this. If not, then logging an issue in the spec repo would be very helpful! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Suggest an idea for this project priority:p1 Critical issues and bugs. Highest priority; breaking API changes. release:required-for-ga Required for 1.0 GA release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants