File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1010
1111import application .io .opentelemetry .instrumentation .annotations .AddingSpanAttributes ;
1212import application .io .opentelemetry .instrumentation .annotations .WithSpan ;
13+ import application .io .opentelemetry .instrumentation .annotations .Counted ;
14+ import application .io .opentelemetry .instrumentation .annotations .Timed ;
1315import com .google .auto .service .AutoService ;
1416import io .opentelemetry .javaagent .extension .instrumentation .InstrumentationModule ;
1517import io .opentelemetry .javaagent .extension .instrumentation .TypeInstrumentation ;
1618import java .util .List ;
1719import net .bytebuddy .matcher .ElementMatcher ;
1820
1921/**
20- * Instrumentation for methods annotated with {@link WithSpan} and {@link AddingSpanAttributes}
22+ * Instrumentation for methods annotated with {@link WithSpan} and {@link AddingSpanAttributes},
23+ * {@link Counted} or {@link Timed}
2124 * annotations.
2225 */
2326@ AutoService (InstrumentationModule .class )
@@ -37,9 +40,9 @@ public int order() {
3740 @ Override
3841 public ElementMatcher .Junction <ClassLoader > classLoaderMatcher () {
3942 return hasClassesNamed (
40- "application.io.opentelemetry.instrumentation.annotations.WithSpan" ,
41- "application.io.opentelemetry.instrumentation.annotations.Counted" ,
42- "application.io.opentelemetry.instrumentation.annotations.Timed" );
43+ "application.io.opentelemetry.instrumentation.annotations.WithSpan" )
44+ . or ( hasClassesNamed ( "application.io.opentelemetry.instrumentation.annotations.Counted" ))
45+ . or ( hasClassesNamed ( "application.io.opentelemetry.instrumentation.annotations.Timed" ) );
4346 }
4447
4548 @ Override
You can’t perform that action at this time.
0 commit comments