Update annotation instrumentation property name (#7196)
Missed this when copying over the instrumentation for the old annotations to the instrumentation for the new annotations.
This commit is contained in:
parent
abc9f09efb
commit
0035f4b480
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
| Environment variable | Type | Default | Description |
|
| Environment variable | Type | Default | Description |
|
||||||
|----------------- |------ |--------- |------------- |
|
|----------------- |------ |--------- |------------- |
|
||||||
| `otel.instrumentation.opentelemetry-annotations.exclude-methods` | String | | All methods to be excluded from auto-instrumentation by annotation-based advices. |
|
| `otel.instrumentation.opentelemetry-instrumentation-annotations.exclude-methods` | String | | All methods to be excluded from auto-instrumentation by annotation-based advices. |
|
||||||
|
|
|
@ -35,6 +35,6 @@ tasks {
|
||||||
options.compilerArgs.add("-parameters")
|
options.compilerArgs.add("-parameters")
|
||||||
}
|
}
|
||||||
test {
|
test {
|
||||||
jvmArgs("-Dotel.instrumentation.opentelemetry-annotations.exclude-methods=io.opentelemetry.test.annotation.TracedWithSpan[ignored]")
|
jvmArgs("-Dotel.instrumentation.opentelemetry-instrumentation-annotations.exclude-methods=io.opentelemetry.test.annotation.TracedWithSpan[ignored]")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ import net.bytebuddy.matcher.ElementMatchers;
|
||||||
public class WithSpanInstrumentation implements TypeInstrumentation {
|
public class WithSpanInstrumentation implements TypeInstrumentation {
|
||||||
|
|
||||||
private static final String TRACE_ANNOTATED_METHODS_EXCLUDE_CONFIG =
|
private static final String TRACE_ANNOTATED_METHODS_EXCLUDE_CONFIG =
|
||||||
"otel.instrumentation.opentelemetry-annotations.exclude-methods";
|
"otel.instrumentation.opentelemetry-instrumentation-annotations.exclude-methods";
|
||||||
|
|
||||||
private final ElementMatcher.Junction<AnnotationSource> annotatedMethodMatcher;
|
private final ElementMatcher.Junction<AnnotationSource> annotatedMethodMatcher;
|
||||||
private final ElementMatcher.Junction<MethodDescription> annotatedParametersMatcher;
|
private final ElementMatcher.Junction<MethodDescription> annotatedParametersMatcher;
|
||||||
|
|
Loading…
Reference in New Issue