diff --git a/.github/scripts/check-javaagent-instrumentation-suppression-keys.sh b/.github/scripts/check-javaagent-instrumentation-suppression-keys.sh new file mode 100755 index 000000000000..0501ee6a3f4f --- /dev/null +++ b/.github/scripts/check-javaagent-instrumentation-suppression-keys.sh @@ -0,0 +1,54 @@ +#!/bin/bash -e + +# shellcheck disable=SC2044 +for file in $(find instrumentation -name "*Module.java"); do + + if ! grep -q "extends InstrumentationModule" "$file"; then + continue + fi + + if [[ "$file" != *"/javaagent/src/"* ]]; then + continue + fi + + # shellcheck disable=SC2001 + module_name=$(echo "$file" | sed 's#.*/\([^/]*\)/javaagent/src/.*#\1#') + # shellcheck disable=SC2001 + simple_module_name=$(echo "$module_name" | sed 's/-[0-9.]*$//') + + if [[ "$simple_module_name" == *jaxrs* ]]; then + # TODO these need some work still + continue + fi + if [[ "$simple_module_name" == *jaxws* ]]; then + # TODO these need some work still + continue + fi + if [[ "$simple_module_name" == jdbc ]]; then + # TODO split jdbc-datasource out into separate instrumentation? + continue + fi + if [[ "$simple_module_name" == kafka-clients ]]; then + # TODO split kafka client metrics out into separate instrumentation? + continue + fi + if [[ "$simple_module_name" == quarkus-resteasy-reactive ]]; then + # TODO module is missing a base version + continue + fi + + if [ "$module_name" == "$simple_module_name" ]; then + expected="super\(\n? *\"$simple_module_name\"" + else + expected="super\(\n? *\"$simple_module_name\",\n? *\"$module_name\"" + fi + + echo "$module_name" + + matches=$(perl -0 -ne "print if /$expected/" "$file" | wc -l) + if [ "$matches" == 0 ]; then + echo "Expected to find $expected in $file" + exit 1 + fi + +done diff --git a/.github/workflows/build-common.yml b/.github/workflows/build-common.yml index 62890396ea43..c22cf7b070da 100644 --- a/.github/workflows/build-common.yml +++ b/.github/workflows/build-common.yml @@ -119,6 +119,13 @@ jobs: exit 1 fi + check-suppression-keys: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - run: .github/scripts/check-javaagent-instrumentation-suppression-keys.sh + build: runs-on: ubuntu-latest steps: diff --git a/instrumentation/akka/akka-actor-fork-join-2.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkaactor/AkkaActorForkJoinInstrumentationModule.java b/instrumentation/akka/akka-actor-fork-join-2.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkaactor/AkkaActorForkJoinInstrumentationModule.java index 58942ec5f380..a10d47516f32 100644 --- a/instrumentation/akka/akka-actor-fork-join-2.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkaactor/AkkaActorForkJoinInstrumentationModule.java +++ b/instrumentation/akka/akka-actor-fork-join-2.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkaactor/AkkaActorForkJoinInstrumentationModule.java @@ -15,7 +15,7 @@ @AutoService(InstrumentationModule.class) public class AkkaActorForkJoinInstrumentationModule extends InstrumentationModule { public AkkaActorForkJoinInstrumentationModule() { - super("akka-actor", "akka-actor-fork-join", "akka-actor-fork-join-2.5"); + super("akka-actor-fork-join", "akka-actor-fork-join-2.5", "akka-actor"); } @Override diff --git a/instrumentation/armeria/armeria-grpc-1.14/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/armeria/grpc/v1_14/ArmeriaGrpcInstrumentationModule.java b/instrumentation/armeria/armeria-grpc-1.14/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/armeria/grpc/v1_14/ArmeriaGrpcInstrumentationModule.java index 5eb6733689cc..c9e8702b30c9 100644 --- a/instrumentation/armeria/armeria-grpc-1.14/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/armeria/grpc/v1_14/ArmeriaGrpcInstrumentationModule.java +++ b/instrumentation/armeria/armeria-grpc-1.14/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/armeria/grpc/v1_14/ArmeriaGrpcInstrumentationModule.java @@ -15,7 +15,7 @@ @AutoService(InstrumentationModule.class) public class ArmeriaGrpcInstrumentationModule extends InstrumentationModule { public ArmeriaGrpcInstrumentationModule() { - super("armeria", "armeria-1.14", "armeria-grpc-1.14"); + super("armeria-grpc", "armeria-grpc-1.14", "armeria", "armeria-1.14"); } @Override diff --git a/instrumentation/clickhouse-client-0.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/clickhouse/ClickHouseInstrumentationModule.java b/instrumentation/clickhouse-client-0.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/clickhouse/ClickHouseInstrumentationModule.java index 4477710668e8..dc6b59d1a30c 100644 --- a/instrumentation/clickhouse-client-0.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/clickhouse/ClickHouseInstrumentationModule.java +++ b/instrumentation/clickhouse-client-0.5/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/clickhouse/ClickHouseInstrumentationModule.java @@ -16,7 +16,7 @@ public class ClickHouseInstrumentationModule extends InstrumentationModule { public ClickHouseInstrumentationModule() { - super("clickhouse", "clickhouse-client-0.5"); + super("clickhouse-client", "clickhouse-client-0.5", "clickhouse"); } @Override diff --git a/instrumentation/elasticsearch/elasticsearch-rest-6.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/elasticsearch/rest/v6_4/ElasticsearchRest6InstrumentationModule.java b/instrumentation/elasticsearch/elasticsearch-rest-6.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/elasticsearch/rest/v6_4/ElasticsearchRest6InstrumentationModule.java index d970e3dcbe09..efa09e2654a8 100644 --- a/instrumentation/elasticsearch/elasticsearch-rest-6.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/elasticsearch/rest/v6_4/ElasticsearchRest6InstrumentationModule.java +++ b/instrumentation/elasticsearch/elasticsearch-rest-6.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/elasticsearch/rest/v6_4/ElasticsearchRest6InstrumentationModule.java @@ -18,7 +18,7 @@ @AutoService(InstrumentationModule.class) public class ElasticsearchRest6InstrumentationModule extends InstrumentationModule { public ElasticsearchRest6InstrumentationModule() { - super("elasticsearch-rest", "elasticsearch-rest-6.0", "elasticsearch"); + super("elasticsearch-rest", "elasticsearch-rest-6.4", "elasticsearch"); } @Override diff --git a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/TwitterUtilCoreInstrumentationModule.java b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/TwitterUtilCoreInstrumentationModule.java index 1f72e97f352c..c412a97cdbc1 100644 --- a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/TwitterUtilCoreInstrumentationModule.java +++ b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/TwitterUtilCoreInstrumentationModule.java @@ -18,7 +18,7 @@ public class TwitterUtilCoreInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public TwitterUtilCoreInstrumentationModule() { - super("twitter-util-core"); + super("finagle-http", "finagle-http-23.11"); } @Override diff --git a/instrumentation/internal/internal-application-logger/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggingInstrumentationModule.java b/instrumentation/internal/internal-application-logger/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggingInstrumentationModule.java index d490e2fbf9eb..b9a728f7d2ed 100644 --- a/instrumentation/internal/internal-application-logger/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggingInstrumentationModule.java +++ b/instrumentation/internal/internal-application-logger/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggingInstrumentationModule.java @@ -17,7 +17,7 @@ public class ApplicationLoggingInstrumentationModule extends InstrumentationModule { public ApplicationLoggingInstrumentationModule() { - super("internal-application-logging"); + super("internal-application-logger"); } @Override diff --git a/instrumentation/javalin-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/javalin/v5_0/JavalinInstrumentationModule.java b/instrumentation/javalin-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/javalin/v5_0/JavalinInstrumentationModule.java index 09d81be0b083..d67a7843e90a 100644 --- a/instrumentation/javalin-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/javalin/v5_0/JavalinInstrumentationModule.java +++ b/instrumentation/javalin-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/javalin/v5_0/JavalinInstrumentationModule.java @@ -19,7 +19,7 @@ public class JavalinInstrumentationModule extends InstrumentationModule { public JavalinInstrumentationModule() { - super("javalin", "javalin-5"); + super("javalin", "javalin-5.0"); } @Override diff --git a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/KotlinCoroutinesInstrumentationModule.java b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/KotlinCoroutinesInstrumentationModule.java index 8ed90c855ccf..8a4550c84c8f 100644 --- a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/KotlinCoroutinesInstrumentationModule.java +++ b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/KotlinCoroutinesInstrumentationModule.java @@ -18,7 +18,7 @@ public class KotlinCoroutinesInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public KotlinCoroutinesInstrumentationModule() { - super("kotlinx-coroutines"); + super("kotlinx-coroutines", "kotlinx-coroutines-1.0"); } @Override diff --git a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations/AnnotationInstrumentationModule.java b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations/AnnotationInstrumentationModule.java index a6ce11e4ebe4..84f4ab0c6338 100644 --- a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations/AnnotationInstrumentationModule.java +++ b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations/AnnotationInstrumentationModule.java @@ -20,8 +20,9 @@ public class AnnotationInstrumentationModule extends InstrumentationModule { public AnnotationInstrumentationModule() { super( - "kotlinx-coroutines-opentelemetry-instrumentation-annotations", "kotlinx-coroutines", + "kotlinx-coroutines-1.0", + "kotlinx-coroutines-opentelemetry-instrumentation-annotations", "opentelemetry-instrumentation-annotations"); } diff --git a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-flow-1.3/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/flow/KotlinCoroutinesFlowInstrumentationModule.java b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-flow-1.3/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/flow/KotlinCoroutinesFlowInstrumentationModule.java index d280f231f430..2b7fa337068f 100644 --- a/instrumentation/kotlinx-coroutines/kotlinx-coroutines-flow-1.3/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/flow/KotlinCoroutinesFlowInstrumentationModule.java +++ b/instrumentation/kotlinx-coroutines/kotlinx-coroutines-flow-1.3/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/flow/KotlinCoroutinesFlowInstrumentationModule.java @@ -16,7 +16,7 @@ public class KotlinCoroutinesFlowInstrumentationModule extends InstrumentationModule { public KotlinCoroutinesFlowInstrumentationModule() { - super("kotlinx-coroutines", "kotlinx-coroutines-flow"); + super("kotlinx-coroutines-flow", "kotlinx-coroutines-flow-1.3", "kotlinx-coroutines"); } @Override diff --git a/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorClientInstrumentationModule.java b/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorClientInstrumentationModule.java index af4f2f5f14f2..4fd4564ecc6f 100644 --- a/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorClientInstrumentationModule.java +++ b/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorClientInstrumentationModule.java @@ -18,7 +18,7 @@ public class KtorClientInstrumentationModule extends InstrumentationModule { public KtorClientInstrumentationModule() { - super("ktor", "ktor-client", "ktor-2.0", "ktor-client-2.0"); + super("ktor", "ktor-2.0", "ktor-client", "ktor-client-2.0"); } @Override diff --git a/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorServerInstrumentationModule.java b/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorServerInstrumentationModule.java index 0eea031ea21e..40b1950248d3 100644 --- a/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorServerInstrumentationModule.java +++ b/instrumentation/ktor/ktor-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v2_0/KtorServerInstrumentationModule.java @@ -16,7 +16,7 @@ public class KtorServerInstrumentationModule extends InstrumentationModule { public KtorServerInstrumentationModule() { - super("ktor", "ktor-server", "ktor-2.0", "ktor-server-2.0"); + super("ktor", "ktor-2.0", "ktor-server", "ktor-server-2.0"); } @Override diff --git a/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorClientInstrumentationModule.java b/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorClientInstrumentationModule.java index 666a83d8e59d..3eacf35581cd 100644 --- a/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorClientInstrumentationModule.java +++ b/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorClientInstrumentationModule.java @@ -18,7 +18,7 @@ public class KtorClientInstrumentationModule extends InstrumentationModule { public KtorClientInstrumentationModule() { - super("ktor", "ktor-client", "ktor-3.0", "ktor-client-3.0"); + super("ktor", "ktor-3.0", "ktor-client", "ktor-client-3.0"); } @Override diff --git a/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorServerInstrumentationModule.java b/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorServerInstrumentationModule.java index 11152c53526d..27b2b9f627c8 100644 --- a/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorServerInstrumentationModule.java +++ b/instrumentation/ktor/ktor-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/ktor/v3_0/KtorServerInstrumentationModule.java @@ -16,7 +16,7 @@ public class KtorServerInstrumentationModule extends InstrumentationModule { public KtorServerInstrumentationModule() { - super("ktor", "ktor-server", "ktor-3.0", "ktor-server-3.0"); + super("ktor", "ktor-3.0", "ktor-server", "ktor-server-3.0"); } @Override diff --git a/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentationModule.java b/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentationModule.java index 2d3663c0ca02..50645fb28985 100644 --- a/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentationModule.java +++ b/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentationModule.java @@ -20,7 +20,7 @@ public class WithSpanInstrumentationModule extends InstrumentationModule { public WithSpanInstrumentationModule() { - super("opentelemetry-extension-annotations"); + super("opentelemetry-extension-annotations", "opentelemetry-extension-annotations-1.0"); } @Override diff --git a/instrumentation/opentelemetry-extension-kotlin-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionkotlin/ContextExtensionInstrumentationModule.java b/instrumentation/opentelemetry-extension-kotlin-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionkotlin/ContextExtensionInstrumentationModule.java index 4d90667c42f1..4e9c7f3dbde9 100644 --- a/instrumentation/opentelemetry-extension-kotlin-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionkotlin/ContextExtensionInstrumentationModule.java +++ b/instrumentation/opentelemetry-extension-kotlin-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/extensionkotlin/ContextExtensionInstrumentationModule.java @@ -18,7 +18,7 @@ public class ContextExtensionInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public ContextExtensionInstrumentationModule() { - super("opentelemetry-extension-kotlin"); + super("opentelemetry-extension-kotlin", "opentelemetry-extension-kotlin-1.0"); } @Override diff --git a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java index 71af12b47ea8..3b61339de0ae 100644 --- a/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java +++ b/instrumentation/opentelemetry-instrumentation-annotations-1.16/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/AnnotationInstrumentationModule.java @@ -24,7 +24,10 @@ public class AnnotationInstrumentationModule extends InstrumentationModule { public AnnotationInstrumentationModule() { - super("opentelemetry-instrumentation-annotations", "annotations"); + super( + "opentelemetry-instrumentation-annotations", + "opentelemetry-instrumentation-annotations-1.16", + "annotations"); } @Override diff --git a/instrumentation/pulsar/pulsar-2.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/PulsarInstrumentationModule.java b/instrumentation/pulsar/pulsar-2.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/PulsarInstrumentationModule.java index 544a818ee12d..06a5ab553cde 100644 --- a/instrumentation/pulsar/pulsar-2.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/PulsarInstrumentationModule.java +++ b/instrumentation/pulsar/pulsar-2.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/PulsarInstrumentationModule.java @@ -14,7 +14,7 @@ @AutoService(InstrumentationModule.class) public class PulsarInstrumentationModule extends InstrumentationModule { public PulsarInstrumentationModule() { - super("pulsar", "pulsar-2.8.0"); + super("pulsar", "pulsar-2.8"); } @Override diff --git a/instrumentation/spring/spring-cloud-gateway/spring-cloud-gateway-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/gateway/v2_0/GatewayInstrumentationModule.java b/instrumentation/spring/spring-cloud-gateway/spring-cloud-gateway-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/gateway/v2_0/GatewayInstrumentationModule.java index a47ca107b88f..567f54f0c332 100644 --- a/instrumentation/spring/spring-cloud-gateway/spring-cloud-gateway-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/gateway/v2_0/GatewayInstrumentationModule.java +++ b/instrumentation/spring/spring-cloud-gateway/spring-cloud-gateway-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/gateway/v2_0/GatewayInstrumentationModule.java @@ -18,7 +18,7 @@ public class GatewayInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public GatewayInstrumentationModule() { - super("spring-cloud-gateway"); + super("spring-cloud-gateway", "spring-cloud-gateway-2.0"); } @Override diff --git a/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/servlet/SpringSecurityConfigServletInstrumentationModule.java b/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/servlet/SpringSecurityConfigServletInstrumentationModule.java index 85c3e0bc00d0..dee55a33f4ca 100644 --- a/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/servlet/SpringSecurityConfigServletInstrumentationModule.java +++ b/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/servlet/SpringSecurityConfigServletInstrumentationModule.java @@ -22,7 +22,11 @@ public class SpringSecurityConfigServletInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public SpringSecurityConfigServletInstrumentationModule() { - super("spring-security-config-servlet", "spring-security-config-servlet-6.0"); + super( + "spring-security-config", + "spring-security-config-6.0", + "spring-security-config-servlet", + "spring-security-config-servlet-6.0"); } @Override diff --git a/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/webflux/SpringSecurityConfigWebFluxInstrumentationModule.java b/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/webflux/SpringSecurityConfigWebFluxInstrumentationModule.java index 4293e2b26d5d..43572827b483 100644 --- a/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/webflux/SpringSecurityConfigWebFluxInstrumentationModule.java +++ b/instrumentation/spring/spring-security-config-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/security/config/v6_0/webflux/SpringSecurityConfigWebFluxInstrumentationModule.java @@ -19,7 +19,11 @@ public class SpringSecurityConfigWebFluxInstrumentationModule extends InstrumentationModule { public SpringSecurityConfigWebFluxInstrumentationModule() { - super("spring-security-config-webflux", "spring-security-config-webflux-6.0"); + super( + "spring-security-config", + "spring-security-config-6.0", + "spring-security-config-webflux", + "spring-security-config-webflux-6.0"); } @Override diff --git a/instrumentation/spring/spring-webflux/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/reactornetty/ReactorNettyInstrumentationModule.java b/instrumentation/spring/spring-webflux/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/reactornetty/ReactorNettyInstrumentationModule.java index 8abd3d0a954e..346dbcdf6fb5 100644 --- a/instrumentation/spring/spring-webflux/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/reactornetty/ReactorNettyInstrumentationModule.java +++ b/instrumentation/spring/spring-webflux/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/reactornetty/ReactorNettyInstrumentationModule.java @@ -17,7 +17,7 @@ public class ReactorNettyInstrumentationModule extends InstrumentationModule implements ExperimentalInstrumentationModule { public ReactorNettyInstrumentationModule() { - super("reactor-netty", "reactor-netty-server"); + super("spring-webflux", "spring-webflux-5.0", "reactor-netty", "reactor-netty-server"); } @Override diff --git a/instrumentation/zio/zio-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/zio/v2_0/ZioInstrumentationModule.java b/instrumentation/zio/zio-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/zio/v2_0/ZioInstrumentationModule.java index 42e2b6ebab23..d0316f462ffb 100644 --- a/instrumentation/zio/zio-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/zio/v2_0/ZioInstrumentationModule.java +++ b/instrumentation/zio/zio-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/zio/v2_0/ZioInstrumentationModule.java @@ -16,7 +16,7 @@ public class ZioInstrumentationModule extends InstrumentationModule { public ZioInstrumentationModule() { - super("zio"); + super("zio", "zio-2.0"); } @Override