diff --git a/instrumentation/jdbc/library/build.gradle.kts b/instrumentation/jdbc/library/build.gradle.kts index 47d13861346e..d559f14821cb 100644 --- a/instrumentation/jdbc/library/build.gradle.kts +++ b/instrumentation/jdbc/library/build.gradle.kts @@ -7,6 +7,10 @@ plugins { id("otel.library-instrumentation") } +otelInstrumentation { + name.set("io.opentelemetry.jdbc") +} + dependencies { compileOnly("com.google.auto.value:auto-value-annotations") annotationProcessor("com.google.auto.value:auto-value") diff --git a/instrumentation/jdbc/library/src/test/groovy/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriverTest.groovy b/instrumentation/jdbc/library/src/test/groovy/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriverTest.groovy index 762685b6c497..9e00e320fe2f 100644 --- a/instrumentation/jdbc/library/src/test/groovy/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriverTest.groovy +++ b/instrumentation/jdbc/library/src/test/groovy/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriverTest.groovy @@ -5,7 +5,7 @@ package io.opentelemetry.instrumentation.jdbc -import io.opentelemetry.instrumentation.api.InstrumentationVersion +import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter import io.opentelemetry.instrumentation.jdbc.internal.OpenTelemetryConnection import spock.lang.Specification @@ -37,7 +37,7 @@ class OpenTelemetryDriverTest extends Specification { expect: !OpenTelemetryDriver.INSTANCE.jdbcCompliant() - String[] parts = InstrumentationVersion.getPackage().getImplementationVersion().split("\\.") + String[] parts = Instrumenter.getPackage().getImplementationVersion().split("\\.") OpenTelemetryDriver.INSTANCE.majorVersion == Integer.parseInt(parts[0]) OpenTelemetryDriver.INSTANCE.minorVersion == Integer.parseInt(parts[1])