-
Hello! I'm working on a trial exploration of the OpenTelemetry framework for Java. I've got some code using the 1.5.0(-alpha) version of the SDK which does the following:
I have the OT Collector running with the otlp/grpc receiver configured, and the prometheus exporter configured. After calling
Is this expected? A bug? Version mismatch somewhere between library and/or collector? I know that the metrics API/SDK is alpha right now, just trying to understand if this is a misconfiguration or something on my end or not. Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @dparis - 1.6 will report histograms as histogram, 1.5 indeed currently exports as summary. In the java agent, we have a workaround to dogfood the behavior in the 1.6 release to map the duration metrics it creates to histogram, you may want to use similar in your app for now |
Beta Was this translation helpful? Give feedback.
Hi @dparis - 1.6 will report histograms as histogram, 1.5 indeed currently exports as summary. In the java agent, we have a workaround to dogfood the behavior in the 1.6 release to map the duration metrics it creates to histogram, you may want to use similar in your app for now
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/OpenTelemetryInstaller.java#L86