-
Notifications
You must be signed in to change notification settings - Fork 872
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
Unable to create synchronous gauge using instrument API #6378
Comments
Can you check the version of all your dependencies? I noticed you using spring, which we've seen is quite stubborn about the versions of opentelemetry artifacts it brings in. I suspect that you successfully upgraded some artifact versions, but not all, and opentelemetry-java artifacts all need to be kept in sync at the same version. See this #6018 (comment) for a few different ways people have found to override the version from spring dependency management. |
Hi @jack-berg :
The latest opentelemetry-extension-incubator lib on Maven Repository is: 1.36.0-alpha Thank for help. |
hi @tongshushan, |
Hi @trask , your suggestion is also working, thanks. opentelemetry-api-incubator on maven repositry is 1.37.0-alpha https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-api-incubator |
Describe the bug
Hello,
refer to: #5506 (comment) ,I want to create synchronous gauge using instrument API, but get error:
java.lang.ClassCastException: io.opentelemetry.sdk.metrics.SdkDoubleGauge$SdkDoubleGaugeBuilder cannot be cast to io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder
Steps to reproduce
code:
pom.xml:
What did you expect to see?
Call the test method: testSendSynchronizedGauge() should send synchronous gauge.
What did you see instead?
java.lang.ClassCastException: io.opentelemetry.sdk.metrics.SdkDoubleGauge$SdkDoubleGaugeBuilder cannot be cast to io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder
Environment
OS: "Win11"
java version: "1.8.0_121"
springboot: 2.3.12.RELEASE
The text was updated successfully, but these errors were encountered: