You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In OpenTracing it was possible to override the operationName of an automatically created Span of JAX-RS endpoints by using @Traced. This is no longer possible with opentelemetry-java. Also it seems that the connection to the previous span is lost (see screenshots)
The @Trace is from MP OpenTracing and not from OpenTracing directly. I believe that OpenTracing did not have a way to override the REST endpoint span name natively.
And because @WithSpan creates a new span, the information is not lost. Every span after the @WithSpan will be under a new parent, but still part of the same trace.
Describe the bug
In
OpenTracing
it was possible to override theoperationName
of an automatically created Span of JAX-RS endpoints by using@Traced
. This is no longer possible withopentelemetry-java
. Also it seems that the connection to the previous span is lost (see screenshots)See opentelemetry-java#4391
Expected behavior
@WithSpan(..)
Actual behavior
@WithSpan(..)
How to Reproduce?
Annotate your JAX-RS REST endpoint with
@WithSpan(..)
, see:We are using Quarkus
2.7.2.Final
, which also defines the following Dependency versions:We are using the following dependencies:
Output of
uname -a
orver
MINGW64_NT-10.0-19043 DESKTOP-55VO1DT 3.1.7-340.x86_64 2020-09-22 19:03 UTC x86_64 Msy
Output of
java -version
AdoptOpenJDK (build 11.0.10+9)
GraalVM version (if different from Java)
n/a
Quarkus version or git rev
2.7.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Additional information
n/a
The text was updated successfully, but these errors were encountered: