-
My team maintains a SpringBoot application which creates an executor service via Executors.newFixedThreadPool. A spring-boot I would like to understand what's going on and what somebody who understands how this works would do to fix it. From what I can gather from the docs and source code, the auto-instrumentation will start a span for the My only successful attempt at solving the problem was to disable the executors instrumentation and pop a Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Executor instrumentation propagates the context from calling the try (Scope ignore = Context.root().makeCurrent()) {
execute(...);
} Another option would be to call |
Beta Was this translation helpful? Give feedback.
Executor instrumentation propagates the context from calling the
execute
method into theRunnable
. Ifexecute
was called inside some span then that span will be the parent of all the work that is going to happen inside theRunnable
. One approach to avoid this would be to reset the context before calling execute withAnother option would be to call
opentelemetry-java-instrumentation/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/ignore/IgnoredTypesBuilder.java
Line 93 in 1cddf1b