Skip to content

Commit

Permalink
fix jdbc library test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek committed Mar 25, 2022
1 parent 4972634 commit a401183
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions instrumentation/jdbc/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit a401183

Please sign in to comment.