Skip to content
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

Merged
merged 7 commits into from
Mar 12, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Mar 11, 2021

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

@pavolloffay
Copy link
Member

thanks for the fix @laurit. I will have a look at this shortly.

@pavolloffay
Copy link
Member

Maybe there could be a test that adds a filter and verifies that span is recording events after the .doFilter

@@ -4,7 +4,8 @@ muzzle {
pass {
group = "io.undertow"
module = 'undertow-core'
versions = "[2.0.0.Final,)"
versions = "[1.4.0.Final,)"
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Member

@trask trask left a 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,)"
Copy link
Member

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?

@iNikem iNikem merged commit ff3542e into open-telemetry:main Mar 12, 2021
@laurit laurit deleted the undertow branch August 24, 2021 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undertow span is finished before last servlet filter
5 participants