clj-otel

2024-10-04T18:23:51.688639Z

Has anyone here gotten metrics from clj-otel working with the datadog javaagent (`dd-java-agent.jar`)? When I run

(instrument/instrument {:instrument-type :gauge ,,,})
I end up with something like this
#object[io.opentelemetry.api.metrics.DefaultMeter$NoopLongGauge 0x28c2f935 io.opentelemetry.api.metrics.DefaultMeter$NoopLongGauge@28c2f935]
and no metrics get sent. span/with-span! works as expected. I suspect it has something to do with NoopLongGauge. Is there something I need to do to enable sending metrics? Does anyone know of a way to send a basic metric using curl or something for testing?

steffan 2024-10-05T10:43:04.697379Z

I don't know the extent of Datadog's OpenTelemetry API support for metrics manual instrumentation, so I'd be interested if anyone has experience with this. This https://docs.datadoghq.com/tracing/trace_collection/custom_instrumentation/java/otel/ suggests the manual instrumentation support extends to traces only at present. I suggest reaching out to your Datadog support to ask them about this.

2024-10-08T03:50:16.690019Z

Thanks for the reply Steffan. I'll update here if I figure anything out.