Replies: 1 comment 4 replies
-
You don't need to add it, adding it won't get you the spans that you expect. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using 'Autoconfiguration' option to enable opentelemetry for our Springboot app (ie., Not using Java Agent instrumentation)
@Bean public OpenTelemetry openTelemetry() { return AutoConfiguredOpenTelemetrySdk.initialize().getOpenTelemetrySdk(); }
With the above configuration , i was expecting to see the Springboot spans like 'Filter' methods . For example i was expecting to see the span for 'OncePerRequestFilter' , which will be invoked for every API request .
But i am not able to see these framework level spans in my API requests , though i can see the 'Controller' spans for every request.
Below is my maven dependencies for "Auto Configuration"
<dependency> <groupId>io.opentelemetry.instrumentation</groupId> <artifactId>opentelemetry-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-extension-autoconfigure-spi</artifactId> </dependency>
Can you let me know if i have to explicitly add the dependencies as mentioned below to see the 'Filter' spans ?
https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/spring/spring-webmvc
Beta Was this translation helpful? Give feedback.
All reactions