Unable to send custom metrics using otel Java Agent.
I have a java servlet application running via otel agent in tomcat server. I can see the traces and default metrics created by application coming into my collector and eventually into datadog.
However, I wanted to add some custom metric Histograms. So, I created the meter object using GlobalOpenTelemetry
Meter meter = GlobalOpenTelemetry.getMeter("")
LongHistogram myhistogram = meter.histogramBuilder(...)
....
When I set the -Dotel.metrics.exporter=otlp,logging , I can see the metric value logged on my console, but nothing shows up on collector or datadog.
Any help in this matter is appreciated.
@rahul-narkhede any fix for this. Running into the same problem
do you have the otlp exporter added as a dependency?
implementation("io.opentelemetry:opentelemetry-exporter-otlp")
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.