Closed goto1134 closed 3 years ago
I tried to use the legacy endpoint and got the same behaviour
Can you try running your application with -Dotel.metrics.exporter=logging
? We'll see what data the javaagent actually sends.
I suspect this issue is due to the java exporter emitting OTLP/proto v0.9.0, and the collector still only supporting v0.7.0
@mateuszrzeszutek
Can you try running your application with
-Dotel.metrics.exporter=logging
? We'll see what data the javaagent actually sends.
Yes, the data logged by java-instrumentation is correct!
@jkwatson
I suspect this issue is due to the java exporter emitting OTLP/proto v0.9.0, and the collector still only supporting v0.7.0
Ok, then I will open an issue there to migrate!
Maybe opentelemetry-java
and opentelemetry-java-instrumentation
should migrate to the new grpc protobuf version only after the collector
updates? Or maybe there should be a compatibility table somewhere in these projects documentation?
Indeed right now the Java emits 0.9.0 , and the collector just started to add support for 0.8.0 (work in progress), once that is done we should be able to no longer see 0 values there.
Closing as underlying collector issue was closed.
Describe the bug Opentelemetry metrics are exposed to opentelemetry-collector from java-instrumentation with zero values.
Steps to reproduce Instrument a java-project with metrics otlp exporter Setup opentelemetry-collector with the following config:
What did you expect to see? all metrics get exposed to the prometheus endpoint with non-zero values What did you see instead? all metcics get exposed to prometheus, but all of them are zeros
What version are you using? opentelemetry-java-instrumentation: 1.3.1 opentelemetry-collector: 0.29.0
Environment Compiler: "AdoptOpenJDK 15.0.0" OS: "Mac OS Big Sur"
Additional context When I setup metrics exporter to logging, I see non-zero values in logs.
As I see in logs, all the metrics are received by the collector as zeros: