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

End span after closing scope #12952

Merged
merged 3 commits into from
Dec 27, 2024

Conversation

trask
Copy link
Member

@trask trask commented Dec 22, 2024

Resolves #4596

@github-actions github-actions bot requested a review from theletterf December 22, 2024 23:27
@trask trask force-pushed the end-span-after-closing-scope branch from 6a6ab03 to fa3e9b6 Compare December 23, 2024 03:47
@trask trask marked this pull request as ready for review December 23, 2024 23:12
@trask trask requested a review from a team as a code owner December 23, 2024 23:12
@@ -60,21 +60,20 @@ public void doFilterInternal(
}

Context context = instrumenter.start(parentContext, request);
if (httpRouteSupport.hasMappings()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that it was deliberately added after filterChain.doFilter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, reverted changes to these two files

@@ -60,21 +60,20 @@ public void doFilterInternal(
}

Context context = instrumenter.start(parentContext, request);
if (httpRouteSupport.hasMappings()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that it was deliberately added after filterChain.doFilter.

@trask trask merged commit 2ea27b2 into open-telemetry:main Dec 27, 2024
56 checks passed
@trask trask deleted the end-span-after-closing-scope branch December 27, 2024 17:22
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.

Update instrumentation to always close scope before ending span
3 participants