Skip to content

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

Merged
trask merged 23 commits into
open-telemetry:mainfrom
trask:better-server-span-name
Apr 22, 2021
Merged

Better server span name for Spring MVC, Grails, Wicket and Struts#2814
trask merged 23 commits into
open-telemetry:mainfrom
trask:better-server-span-name

Conversation

@trask

@trask trask commented Apr 19, 2021

Copy link
Copy Markdown
Member

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

@laurit laurit left a comment

Copy link
Copy Markdown
Contributor

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