From 931a95e259e4efacfe926044f0037173e6d7f14c Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Thu, 20 Apr 2023 11:22:40 +0200 Subject: [PATCH] WithSpan and SpanAttribute deprecated package switch --- docs/src/main/asciidoc/opentelemetry.adoc | 4 ++-- .../deployment/instrumentation/GrpcOpenTelemetryTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/opentelemetry.adoc b/docs/src/main/asciidoc/opentelemetry.adoc index eb330845297b6..c93a3681cd269 100644 --- a/docs/src/main/asciidoc/opentelemetry.adoc +++ b/docs/src/main/asciidoc/opentelemetry.adoc @@ -447,10 +447,10 @@ The instrumentation documented in this section has been tested with Quarkus and === CDI -Annotating a method in any CDI aware bean with the `io.opentelemetry.extension.annotations.WithSpan` +Annotating a method in any CDI aware bean with the `io.opentelemetry.instrumentation.annotations.WithSpan` annotation will create a new Span and establish any required relationships with the current Trace context. -Method parameters can be annotated with the `io.opentelemetry.extension.annotations.SpanAttribute` annotation to +Method parameters can be annotated with the `io.opentelemetry.instrumentation.annotations.SpanAttribute` annotation to indicate which method parameters should be part of the Trace. Example: diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java index 2bc9d9a8ba6f9..543f2a2c99aad 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java @@ -32,7 +32,7 @@ import io.opentelemetry.api.GlobalOpenTelemetry; import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.Tracer; -import io.opentelemetry.extension.annotations.WithSpan; +import io.opentelemetry.instrumentation.annotations.WithSpan; import io.opentelemetry.sdk.trace.data.SpanData; import io.quarkus.grpc.GrpcClient; import io.quarkus.grpc.GrpcService;