-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
OpenTelemetry: NPE in HttpInstrumenterVertxTracer.RouteGetter when request got cancelled #26779
Conversation
/cc @radcortez |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other places we call response.get*
, so maybe we need to address those.
@radcortez but will you call the methods of |
Even when we don't have a response, we need to call |
@tmihalac can you adjust and also be null safe for the methods in |
So all I need to do is to be null safe with the response in ServerAttributesExtractor ? |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from my small comment, I think it makes sense.
But I will let @radcortez have the final say.
...rc/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For the formatting issues, I recommend you have a look at: https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md#ide-config-and-code-style . Also, time for you to learn how to squash your commits yourself :). What I personally do is:
This will open an editor. Note: be careful when doing that as you rewrite the history. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
...rc/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java
Outdated
Show resolved
Hide resolved
…quest got cancelled Fixed NPE in HttpInstrumenterVertxTracer$RouteGetter when request got cancelled Signed-off-by: Theodor Mihalache <[email protected]>
Thank you! |
Fixes #26764
Signed-off-by: Theodor Mihalache [email protected]