From ac53d236c241ada1921beccdf62f2bd63e5c0720 Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Mon, 12 Jun 2023 09:38:46 +0200 Subject: [PATCH] add comment --- .../spring/scheduling/v3_1/TaskSchedulerInstrumentation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/v3_1/TaskSchedulerInstrumentation.java b/instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/v3_1/TaskSchedulerInstrumentation.java index 412df1b56ea4..532f202926b1 100644 --- a/instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/v3_1/TaskSchedulerInstrumentation.java +++ b/instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/v3_1/TaskSchedulerInstrumentation.java @@ -19,6 +19,8 @@ public class TaskSchedulerInstrumentation implements TypeInstrumentation { @Override public ElementMatcher typeMatcher() { + // we're only instrumenting the "real" scheduler implementations, and skipping all the decorator + // impls return namedOneOf( "org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler", "org.springframework.scheduling.concurrent.ConcurrentTaskScheduler",