Skip to content

Commit 31282d1

Browse files
fix comment errors detected by copilot
1 parent 9d3b99f commit 31282d1

File tree

2 files changed

+8
-8
lines changed
  • instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator

2 files changed

+8
-8
lines changed

instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator/CountedInstrumentation.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class CountedInstrumentation implements TypeInstrumentation {
4242
isAnnotatedWith(
4343
named(
4444
"application.io.opentelemetry.instrumentation.annotations.incubator.Attribute"))));
45-
// exclude all kotlin suspend methods, these are handle in kotlinx-coroutines instrumentation
45+
// exclude all kotlin suspend methods, these are handled in kotlinx-coroutines instrumentation
4646
excludedMethodsMatcher =
4747
AnnotationExcludedMethods.configureExcludedMethods().or(isKotlinSuspendMethod());
4848
}
@@ -57,19 +57,19 @@ public void transform(TypeTransformer transformer) {
5757
ElementMatcher.Junction<MethodDescription> countedMethods =
5858
annotatedMethodMatcher.and(not(excludedMethodsMatcher));
5959

60-
ElementMatcher.Junction<MethodDescription> timedMethodsWithParameters =
60+
ElementMatcher.Junction<MethodDescription> countedMethodsWithParameters =
6161
countedMethods.and(annotatedParametersMatcher);
6262

63-
ElementMatcher.Junction<MethodDescription> timedMethodsWithoutParameters =
63+
ElementMatcher.Junction<MethodDescription> countedMethodsWithoutParameters =
6464
countedMethods.and(not(annotatedParametersMatcher));
6565

6666
transformer.applyAdviceToMethod(
67-
timedMethodsWithoutParameters, CountedInstrumentation.class.getName() + "$CountedAdvice");
67+
countedMethodsWithoutParameters, CountedInstrumentation.class.getName() + "$CountedAdvice");
6868

6969
// Only apply advice for tracing parameters as attributes if any of the parameters are annotated
70-
// with @MetricsAttribute to avoid unnecessarily copying the arguments into an array.
70+
// with @Attribute to avoid unnecessarily copying the arguments into an array.
7171
transformer.applyAdviceToMethod(
72-
timedMethodsWithParameters,
72+
countedMethodsWithParameters,
7373
CountedInstrumentation.class.getName() + "$CountedAttributesAdvice");
7474
}
7575

instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator/TimedInstrumentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class TimedInstrumentation implements TypeInstrumentation {
4242
isAnnotatedWith(
4343
named(
4444
"application.io.opentelemetry.instrumentation.annotations.incubator.Attribute"))));
45-
// exclude all kotlin suspend methods, these are handle in kotlinx-coroutines instrumentation
45+
// exclude all kotlin suspend methods, these are handled in kotlinx-coroutines instrumentation
4646
excludedMethodsMatcher =
4747
AnnotationExcludedMethods.configureExcludedMethods().or(isKotlinSuspendMethod());
4848
}
@@ -67,7 +67,7 @@ public void transform(TypeTransformer transformer) {
6767
timedMethodsWithoutParameters, TimedInstrumentation.class.getName() + "$TimedAdvice");
6868

6969
// Only apply advice for tracing parameters as attributes if any of the parameters are annotated
70-
// with @MetricsAttribute to avoid unnecessarily copying the arguments into an array.
70+
// with @Attribute to avoid unnecessarily copying the arguments into an array.
7171
transformer.applyAdviceToMethod(
7272
timedMethodsWithParameters,
7373
TimedInstrumentation.class.getName() + "$TimedAttributesAdvice");

0 commit comments

Comments
 (0)