Skip to content

Commit

Permalink
WithSpan and SpanAttribute deprecated package switch
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvoboda committed Apr 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 544150d commit 931a95e
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/opentelemetry.adoc
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 931a95e

Please sign in to comment.