-
Notifications
You must be signed in to change notification settings - Fork 867
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
Fix prematurely ending server span on undertow #2560
Conversation
thanks for the fix @laurit. I will have a look at this shortly. |
Maybe there could be a test that adds a filter and verifies that span is recording events after the |
@@ -4,7 +4,8 @@ muzzle { | |||
pass { | |||
group = "io.undertow" | |||
module = 'undertow-core' | |||
versions = "[2.0.0.Final,)" | |||
versions = "[1.4.0.Final,)" |
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.
Change README as well, please
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.
added undertow to supported-libraries.md
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.
can you rename the module from undertow
to undertow-1.4
?
...-api/src/main/java/io/opentelemetry/instrumentation/api/undertow/UndertowRequestContext.java
Outdated
Show resolved
Hide resolved
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.
thx for tracking this down!
@@ -4,7 +4,8 @@ muzzle { | |||
pass { | |||
group = "io.undertow" | |||
module = 'undertow-core' | |||
versions = "[2.0.0.Final,)" | |||
versions = "[1.4.0.Final,)" |
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.
can you rename the module from undertow
to undertow-1.4
?
...ain/java/io/opentelemetry/javaagent/instrumentation/api/undertow/UndertowRequestContext.java
Outdated
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/api/undertow/UndertowRequestContext.java
Outdated
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/api/undertow/UndertowRequestContext.java
Outdated
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/api/undertow/UndertowRequestContext.java
Outdated
Show resolved
Hide resolved
instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy
Outdated
Show resolved
Hide resolved
instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy
Outdated
Show resolved
Hide resolved
instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy
Outdated
Show resolved
Hide resolved
…verTest.groovy Co-authored-by: Trask Stalnaker <[email protected]>
…verTest.groovy Co-authored-by: Trask Stalnaker <[email protected]>
Resolves #2499
Currently we end server span on undertow from
ExchangeCompletionListener
which is called when response is sent to the client. This may happen before request processing code has completed. Change span ending logic so that span is ended when all handlers have exited and exchange has been completed.@pavolloffay could you verify that this fixes the issue you had