You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assess the Datadog team's interest in supporting the OTel metrics API in dd-trace-java.
Provide other members of the community with workarounds for this limitation. I've shared mine below but I don't particularly like my approach and I am very open to suggestions.
Summary
dd-trace-java is currently capable of providing an SDK implementation for the OpenTelemetry tracing API, but not the metrics API. This creates a tricky situation for applications which:
depend on both the OTel tracing & metrics APIs to expose custom instrumentation
wish to use dd-trace-java's OTel tracing implementation as to not break compatibility with Datadog's proprietary trace context and therefore should avoid taking dependencies on the OTel SDK packages
Using the latest available version of dd-trace-java, the following test passes when the DD_TRACE_OTEL_ENABLED environment variable is set to true (see docs):
Objectives
My hope is that this issue will serve to:
Summary
dd-trace-java is currently capable of providing an SDK implementation for the OpenTelemetry tracing API, but not the metrics API. This creates a tricky situation for applications which:
In my case, these applications previously relied upon the open-telemetry/opentelemetry-java-instrumentation javaagent to provide SDK implementations for both the OTel tracing & metrics APIs.
Example
Using the latest available version of dd-trace-java, the following test passes when the
DD_TRACE_OTEL_ENABLED
environment variable is set totrue
(see docs):Workaround
In order to avoid taking a direct dependency on the OTel SDK packages from these applications, I've been working around this limitation by using the OpenTelemetry-to-Micrometer bridge in conjunction with Micrometer's OTLP exporter pointed at the Datadog Agent's OTLP endpoint.
The text was updated successfully, but these errors were encountered: