From 5ab650b893a42bcb723dbf5b1fa5a1687fb2d346 Mon Sep 17 00:00:00 2001 From: Duncan-tree-zhou Date: Thu, 30 May 2024 10:22:58 +0800 Subject: [PATCH] create modules for counted and timed. --- .../AnnotationInstrumentationModule.java | 5 ++--- .../instrumentationannotations/AnnotationSingletons.java | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java index 2c6fb25e8453..71af12b47ea8 100644 --- a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java +++ b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java @@ -9,7 +9,6 @@ import static java.util.Arrays.asList; import application.io.opentelemetry.instrumentation.annotations.AddingSpanAttributes; -import application.io.opentelemetry.instrumentation.annotations.Timed; import application.io.opentelemetry.instrumentation.annotations.WithSpan; import com.google.auto.service.AutoService; import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule; @@ -18,8 +17,8 @@ import net.bytebuddy.matcher.ElementMatcher; /** - * Instrumentation for methods annotated with {@link WithSpan} and {@link AddingSpanAttributes}, - * {@link Counted} or {@link Timed} annotations. + * Instrumentation for methods annotated with {@link WithSpan} and {@link AddingSpanAttributes} + * annotations. */ @AutoService(InstrumentationModule.class) public class AnnotationInstrumentationModule extends InstrumentationModule { diff --git a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationSingletons.java b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationSingletons.java index 64aa719a1503..ff1d75aec95e 100644 --- a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationSingletons.java +++ b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationSingletons.java @@ -22,6 +22,7 @@ public final class AnnotationSingletons { private static final String INSTRUMENTATION_NAME = "io.opentelemetry.opentelemetry-instrumentation-annotations-1.16"; + private static final Logger logger = Logger.getLogger(AnnotationSingletons.class.getName()); private static final Instrumenter INSTRUMENTER = createInstrumenter(); private static final Instrumenter INSTRUMENTER_WITH_ATTRIBUTES =