Closed goto1134 closed 3 years ago
@jkwatson suspects that the otel grpc protocol version is outdated in opentelemetry-collector
, so the data gets lost and the default zero values get received and exposed.
This is a duplicate of https://github.com/open-telemetry/opentelemetry-collector/issues/3602
This issue continues the discussion in https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/3568 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 via
-Dotel.metrics.exporter=logging
java property, I see non-zero values in my program logs.As I see in logs, all the metrics are received by the collector as zeros: