We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an exception occurs in a method that's annotated with @WithSpan, the error won't be recorded in the trace.
@WithSpan
Trace will contain error span.
Currently the error span is missing from the trace. Or in the reproducer's case the entire trace is missing.
Slightly modified TracedResources class from the OpenTelemetry quickstart. https://quarkus.io/guides/opentelemetry
TracedResources
package org.acme.opentelemetry; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import io.opentelemetry.instrumentation.annotations.WithSpan; import org.jboss.logging.Logger; @Path("/hello") public class TracedResources { private static final Logger LOG = Logger.getLogger(TracedResources.class); @GET @Produces(MediaType.TEXT_PLAIN) public String hello(){ LOG.info("hello"); doSomething(); return "hello"; } @WithSpan public String doSomething() { throw new RuntimeException("foo"); } }
When the app is running, execute the command curl http://localhost:8080/hello and look at the trace result.
curl http://localhost:8080/hello
uname -a
ver
No response
java -version
openjdk version "17.0.5"
mvnw --version
gradlew --version
The text was updated successfully, but these errors were encountered:
/cc @brunobat (opentelemetry), @radcortez (opentelemetry)
Sorry, something went wrong.
We are not adding exceptions to the span... Will submit a PR.
Successfully merging a pull request may close this issue.
Describe the bug
If an exception occurs in a method that's annotated with
@WithSpan
, the error won't be recorded in the trace.Expected behavior
Trace will contain error span.
Actual behavior
Currently the error span is missing from the trace. Or in the reproducer's case the entire trace is missing.
How to Reproduce?
Slightly modified
TracedResources
class from the OpenTelemetry quickstart. https://quarkus.io/guides/opentelemetryWhen the app is running, execute the command
curl http://localhost:8080/hello
and look at the trace result.Output of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.5"
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: