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

Better server span name for Spring MVC, Grails, Wicket and Struts #2814

Merged
merged 23 commits into from
Apr 22, 2021
Merged

Better server span name for Spring MVC, Grails, Wicket and Struts #2814

merged 23 commits into from
Apr 22, 2021

Conversation

trask
Copy link
Member

@trask trask commented Apr 19, 2021

The main change in this PR is adding a flag in ServletSpanNaming to prevent controller instrumentation from setting the SERVER span name more than once.

Otherwise, when the servlet request is forwarded to an error controller, the error controller is overwriting the SERVER span name that was set by the controller that handled the request.

This PR only applies this change to Spring MVC, Grails, Wicket and Struts instrumentation initially. Will follow up with issue or PR to apply this change to the remaining.

@trask trask changed the title Better server span name for Grails Better server span name for Grails and Wicket Apr 19, 2021
@trask trask marked this pull request as ready for review April 19, 2021 05:50
@mateuszrzeszutek mateuszrzeszutek requested a review from laurit April 19, 2021 09:41
Copy link
Contributor

@laurit laurit left a comment

Choose a reason for hiding this comment

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

👍

@trask trask merged commit 1824e36 into open-telemetry:main Apr 22, 2021
@trask trask deleted the better-server-span-name branch April 22, 2021 21:16
@trask trask changed the title Better server span name for Grails and Wicket Better server span name for Spring MVC, Grails, Wicket and Struts May 10, 2021
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.

3 participants