-
Notifications
You must be signed in to change notification settings - Fork 867
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 spring webmvc latest dep test #4687
Conversation
/easycla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know why it broke with spring boot 2.6.0? i looked and spring-webmvc was only bumped from 5.3.12 to 5.3.13. mostly wondering if that was the breaking point (5.3.12 to 5.3.13) or if we have a testing problem that made us miss an earlier breakage
// application-crashing side-effects with grails. That is why we don't add all HandlerMapping | ||
// classes here. Although now that we run findMapping after the request, and only when server | ||
// span name has not been updated by a controller, the probability of bad side-effects is much | ||
// reduced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just confirming my understanding (missed this advantage to moving it to the end 👍)
// reduced. | |
// reduced even if we did add all HandlerMapping classes here |
// copied from ServletRequestPathUtils | ||
private static final String PATH_ATTRIBUTE = | ||
"org.springframework.web.util.ServletRequestPathUtils.PATH"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I happened to click into an earlier version of ServletRequestPathUtils
and noticed they used lowercase .path
there, but uppercase .PATH
in later versions.
maybe we can get the constant via reflection instead?
I believe that it broke because previously |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx 👍
4301817
to
37898e1
Compare
@open-telemetry/java-instrumentation-approvers the spring-webmvc span naming is a hairy bit of instrumentation, would be great to get one more review on this PR before merging |
* Fix spring webmvc latest dep test * review comments * remove latest dep version restriction
Resolves #4683