diff --git a/google-cloud-logging/pom.xml b/google-cloud-logging/pom.xml index 0f4190bfa..b514c8503 100644 --- a/google-cloud-logging/pom.xml +++ b/google-cloud-logging/pom.xml @@ -157,6 +157,28 @@ opentelemetry-sdk-trace test + + + + + + + + + io.opentelemetry + opentelemetry-semconv + test + + + io.opentelemetry + opentelemetry-sdk-common + test + + + com.google.cloud.opentelemetry + exporter-trace + test + diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/ContextTest.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/ContextTest.java index b2b3ea17a..7ef8f90de 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/ContextTest.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/ContextTest.java @@ -169,7 +169,7 @@ public void testParsingOpenTelemetryContext() { OpenTelemetrySdk.builder() .setTracerProvider( SdkTracerProvider.builder().addSpanProcessor(inMemorySpanProcessor).build()) - .build(); + .buildAndRegisterGlobal(); Tracer tracer = openTelemetrySdk.getTracer("ContextTest"); Span otelSpan = tracer.spanBuilder("Example Span Attributes").startSpan(); diff --git a/pom.xml b/pom.xml index 7915f66fd..a1359a7ec 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,6 @@ UTF-8 github google-cloud-logging-parent - 1.37.0 @@ -62,14 +61,21 @@ io.opentelemetry - opentelemetry-api - ${opentelemetry.version} - - - io.opentelemetry - opentelemetry-context - ${opentelemetry.version} + opentelemetry-bom + 1.38.0 + pom + import + + + + + + + + + + com.google.api.grpc @@ -130,37 +136,47 @@ - - - io.opentelemetry - opentelemetry-sdk - ${opentelemetry.version} - test - - - io.opentelemetry - opentelemetry-sdk-testing - ${opentelemetry.version} - test - + + + + + + + + + + + + + + + + + + + + + + + io.opentelemetry opentelemetry-semconv - ${opentelemetry.version}-alpha - test - - - io.opentelemetry - opentelemetry-sdk-trace - ${opentelemetry.version} - test - - - io.opentelemetry - opentelemetry-sdk-common - ${opentelemetry.version} + 1.1.0-alpha test + + + + + + + + + + + + com.google.cloud.opentelemetry exporter-trace