Skip to content

Fix ending server span with servlet async request #13830

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

laurit
Copy link
Contributor

@laurit laurit commented May 8, 2025

Resolves #13788
Currently server span is not ended correctly when HttpServletRequest.startAsync() is called while the current span is not the server span. We use the context captured when startAsync() is called to end the server span which does not work when the current span in that context is not the server span. In this PR we remember the context used when request started and use that for ending the server span.

@laurit laurit requested a review from a team as a code owner May 8, 2025 11:53
@laurit laurit added this to the v2.16.0 milestone May 9, 2025
@trask trask merged commit f2ed832 into open-telemetry:main May 13, 2025
86 checks passed
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.

SERVER span isn't captured when using Spring DeferredResult along with controller-telemetry enabled
3 participants