diff --git a/instrumentation/quartz-2.0/library/src/main/java/io/opentelemetry/instrumentation/quartz/v2_0/TracingJobListener.java b/instrumentation/quartz-2.0/library/src/main/java/io/opentelemetry/instrumentation/quartz/v2_0/TracingJobListener.java index b4e3ad6ac56e..e34473b17bb1 100644 --- a/instrumentation/quartz-2.0/library/src/main/java/io/opentelemetry/instrumentation/quartz/v2_0/TracingJobListener.java +++ b/instrumentation/quartz-2.0/library/src/main/java/io/opentelemetry/instrumentation/quartz/v2_0/TracingJobListener.java @@ -42,9 +42,10 @@ public void jobToBeExecuted(JobExecutionContext job) { job.put(Context.class, context); // Listeners are executed synchronously on the same thread starting here. - // https://github.com/quartz-scheduler/quartz/blob/quartz-2.0.x/quartz/src/main/java/org/quartz/core/JobRunShell.java#L180 + // https://github.com/quartz-scheduler/quartz/blob/d42fb7770f287afbf91f6629d90e7698761ad7d8/quartz-core/src/main/java/org/quartz/core/JobRunShell.java#L173 // However, if a listener before this one throws an exception in wasExecuted, we won't be - // executed. + // executed. Library instrumentation users need to make sure other listeners don't throw + // exceptions. Scope scope = context.makeCurrent(); job.put(Scope.class, scope); }