You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder does not seem to be supported by aws-otel-java-instrumentation because I cannot cast io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_10.metrics.ApplicationDoubleGaugeBuilder to io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder following the example below and outlined in the and Add experimental synchronous gauge pull request.
Steps to reproduce
In my Dockerfile, I download the aws-opentelemetry-agent v1.31.0 by running:
What did you expect to see?
I expect to see a metric named "my-gauge" that contains a double with a value of 1.0 passed to my Prometheus instance.
What did you see instead?
Exception in thread "main" java.lang.ClassCastException: class
io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_10.metrics.ApplicationDoubleGaugeBuilder cannot be
cast to class io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder
(io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_10.metrics.ApplicationDoubleGaugeBuilder and
io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder are in unnamed module of loader 'app')
Additional context
Any help you could provide would be greatly appreciated; thanks in advance.
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled
Describe the bug
io.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder
does not seem to be supported by aws-otel-java-instrumentation because I cannot castio.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_10.metrics.ApplicationDoubleGaugeBuilder
toio.opentelemetry.extension.incubator.metrics.ExtendedDoubleGaugeBuilder
following the example below and outlined in the and Add experimental synchronous gauge pull request.Steps to reproduce
In my Dockerfile, I download the aws-opentelemetry-agent v1.31.0 by running:
In my Observability class, I try to build and test a synchronous Gauge by running:
What did you expect to see?
I expect to see a metric named "my-gauge" that contains a double with a value of 1.0 passed to my Prometheus instance.
What did you see instead?
Additional context
Any help you could provide would be greatly appreciated; thanks in advance.
The text was updated successfully, but these errors were encountered: