Skip to content

java.util.concurrent.Executor instrumentation? #1988

Answered by trask
rkennedy-mode asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rkennedy-mode!

The javaagent should propagate the tracing context across executors / async activities, so if you make an external http/database/etc call from inside of your callback, that should get tracked correlated with the request.

The problem with capturing a span on every executor execution is that can be very noisy / produce a lot of spans.

If you want to capture an additional span that you think is noteworthy, I recommend using the @WithSpan annotation: https://github.com/open-telemetry/opentelemetry-java-instrumentation#configure-a-withspan-annotation (and also worth checking out #1945)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rkennedy-mode
Comment options

Answer selected by rkennedy-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants