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
Unused method in ContextStorage #2699
Comments
This was added for two users I think, one JFR, and is demonstrated in the JFR test. It follows my experience in Armeria too where the SPI just too tedious for some trivial use cases. |
Do you have a real example of a usage of the Armeria API? |
Here's the original Armeria issue and PR line/armeria#2634 line/armeria#2723 Unfortunately can't find any OSS usages. /cc @minwoox @ikhoon @trustin |
@anuraaga I see, but it seems to have very limited usage. Can we postpone adding it until a real user asks us to do it. |
@bogdandrutu @sfriberg @HaloFour Users asked for it, that's why we added it |
I am actively using this API now so that I can determine when the current span changes so that I can update MDC and have the span information included in the logs. I am using this in a Java Spring WebFlux application that is using the OpenTelemetry SDK as well as in a separate Scala tracing library that I've recently adopted to implementing the OpenTelemetry API interfaces and to use Context. Here's some of where that Scala library relies on this API: https://github.com/Comcast/money/blob/master/money-core/src/main/scala/com/comcast/money/core/Money.scala#L79 |
Sorry for the late reply. 😅 They used to have their own logic for request scoping using thread-local. So they can log MDC parameters and retrieve some instances they store in the thread-local. So we decide to add the sort of hook so that they could solve the problem. 😄 |
Ok.. too late then 👍 |
opentelemetry-java/api/context/src/main/java/io/opentelemetry/context/ContextStorage.java
Line 88 in eb4c4b8
I think this should be removed until concrete use-case available
The text was updated successfully, but these errors were encountered: