Repository navigation
Use path when high-level framework method is unknown - #1906
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
|
@SylvainJuge I think |
|
I've added
|
eyalkoren
left a comment
There was a problem hiding this comment.
Great refactoring!
I proposed an alternative approach for the actual fix (transaction naming in Spring MVC) that separates the transaction naming logic of the low-level framework from the high level framework.
|
I applied the new APIs to Javalin and Vert.x and added a fallback option to use Ideally, the
However, I don't know if it will eventually be better or if it worth the effort, only some points for consideration |
…junit-support * upstream/master: Updated get-user-teams-membership to version 1.0.3 ensure that the socket is closed even if there is an exception from the other close (elastic#1946) Make sure trace context headers are added only once (elastic#1937) Update CHANGELOG.asciidoc Ecs reformatting more fields (elastic#1910) Use path when high-level framework method is unknown (elastic#1906) Semver parsing enhancement (elastic#1931)
…for-windows-only * upstream/master: (100 commits) [CI] Enable compatibility test matrix for unit tests (elastic#1915) Updated get-user-teams-membership to version 1.0.3 ensure that the socket is closed even if there is an exception from the other close (elastic#1946) Make sure trace context headers are added only once (elastic#1937) Update CHANGELOG.asciidoc Ecs reformatting more fields (elastic#1910) Use path when high-level framework method is unknown (elastic#1906) Semver parsing enhancement (elastic#1931) Bump version.slf4j from 1.7.31 to 1.7.32 (elastic#1933) Add description about memory pool metrics to docs (elastic#1925) updated team membership check in action Add 1.25.0 to cloudfoundry index Update CHANGELOG.asciidoc (elastic#1929) fixed community label action [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release v1.25.0 Prepare release 1.25.0 (elastic#1927) synchronize json schema specs (elastic#1926) added labeling of community issues and PRs added community labeler config ...
What does this PR do?
HTTP Transaction naming can have multiple variants:
use_path_as_transaction_namewe should use the request path and applyurl_groupsto limit cardinalityClassName#methodNameis preferred whenuse_path_as_transaction_nameisfalseCurrently, the behavior when method name is not known, which happens with some Spring controllers, is to simply use the
ClassName, which makes many distinct transactions be gathered under a common name.Thus, in the case where the method name is
null, using the path is often a better fallback.Checklist
Added an API method or config option? Document in which version this will be introducedI have made corresponding changes to the documentation