Skip to content

Commit

Permalink
create modules for counted and timed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan-tree-zhou committed May 30, 2024
1 parent 5ffc6ce commit 5ab650b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Method, Object> INSTRUMENTER = createInstrumenter();
private static final Instrumenter<MethodRequest, Object> INSTRUMENTER_WITH_ATTRIBUTES =
Expand Down

0 comments on commit 5ab650b

Please sign in to comment.