I have a springboot 3 application that we want to add @Observed or @NewSpan to show spans of specific methods speficically filters for a spring cloud gateway.
Im having issues seeing custom spans in Datadog, but am able to see them in Zipkin using the @NewSpan annotation. @Observed seems to not create a span by default?
I am using these dependencies
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
I have set the ENV variables defined here – https://docs.datadoghq.com/opentelemetry/interoperability/otlp_ingest_in_the_agent/?tab=docker
If i change the dependency opentelemetry-exporter-otlp -> opentelemetry-exporter-zipkin and run a zipkin instance locally I can see the new trace spans being created.
I don’t see anything in the DD logs as far as errors or warnings.
I did contact dd support but havent gotten an answer yet.