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

Java Context API example uses the wrong context #5753

Closed
teofr opened this issue Dec 10, 2024 · 1 comment · Fixed by #5766
Closed

Java Context API example uses the wrong context #5753

teofr opened this issue Dec 10, 2024 · 1 comment · Fixed by #5766
Labels
bug Something isn't working sig:java

Comments

@teofr
Copy link

teofr commented Dec 10, 2024

What needs to be changed?
The Java Context API site has an example where the current context instead of the local one should be used.

What is the name + path of the page that needs changed?
content/en/docs/languages/java/api.md

Additional context:
Tiny fix, just not worth signing a CLA. See #5752

@teofr teofr added the bug Something isn't working label Dec 10, 2024
@jack-berg
Copy link
Member

Thanks for the find. Code for the excerpt lives over here: https://github.com/open-telemetry/opentelemetry-java-examples/blob/main/doc-snippets/api/src/main/java/otel/ContextUsage.java#L39

I'll get to this soon enough, but just sharing in case anybody beats me to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sig:java
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants