File tree Expand file tree Collapse file tree 1 file changed +3
-5
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 +3
-5
lines changed Original file line number Diff line number Diff line change 99import static java .util .Arrays .asList ;
1010
1111import application .io .opentelemetry .instrumentation .annotations .AddingSpanAttributes ;
12- import application .io .opentelemetry .instrumentation .annotations .WithSpan ;
1312import application .io .opentelemetry .instrumentation .annotations .Counted ;
1413import application .io .opentelemetry .instrumentation .annotations .Timed ;
14+ import application .io .opentelemetry .instrumentation .annotations .WithSpan ;
1515import com .google .auto .service .AutoService ;
1616import io .opentelemetry .javaagent .extension .instrumentation .InstrumentationModule ;
1717import io .opentelemetry .javaagent .extension .instrumentation .TypeInstrumentation ;
2020
2121/**
2222 * Instrumentation for methods annotated with {@link WithSpan} and {@link AddingSpanAttributes},
23- * {@link Counted} or {@link Timed}
24- * annotations.
23+ * {@link Counted} or {@link Timed} annotations.
2524 */
2625@ AutoService (InstrumentationModule .class )
2726public class AnnotationInstrumentationModule extends InstrumentationModule {
@@ -39,8 +38,7 @@ public int order() {
3938
4039 @ Override
4140 public ElementMatcher .Junction <ClassLoader > classLoaderMatcher () {
42- return hasClassesNamed (
43- "application.io.opentelemetry.instrumentation.annotations.WithSpan" )
41+ return hasClassesNamed ("application.io.opentelemetry.instrumentation.annotations.WithSpan" )
4442 .or (hasClassesNamed ("application.io.opentelemetry.instrumentation.annotations.Counted" ))
4543 .or (hasClassesNamed ("application.io.opentelemetry.instrumentation.annotations.Timed" ));
4644 }
You can’t perform that action at this time.
0 commit comments