opentelemetry-java-instrume.../instrumentation/spring/spring-scheduling-3.1
Helen c61996f5a4
Change Spring Scheduling to not capture span for one-time jobs (only repeated jobs) (#7760)
We are seeing examples where Spring Scheduling INTERNAL spans are
created inside of an existing parent span, which creates unnecessary
noise.

And these spans don't necessary make sense as these are not "background
jobs" (since they occur inside of an existing span).

(see for example
https://github.com/microsoft/ApplicationInsights-Java/issues/2870)

This PR changes Spring Scheduling instrumentation to only instrumenting
repeating jobs, not one-time scheduled jobs (which corresponds to
ScheduledExecutorService behavior where context is not propagated to
runnable)

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-02-13 12:05:06 -08:00
..
bootstrap Disable internal TaskScheduler spans in Spring Kafka instrumentation (#7553) 2023-01-11 17:19:43 -08:00
javaagent Change Spring Scheduling to not capture span for one-time jobs (only repeated jobs) (#7760) 2023-02-13 12:05:06 -08:00