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

fix spring webflux route extraction + improve webflux tests #4390

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

amarziali
Copy link
Collaborator

What Does This Do

A couple of things:

  • Extract http route tag from Handlers (previously it was failing to extract the info for routerFunctions (was only working for method annotated with @RequestMapping))
  • Simplified testing with spring boot by reusing the source folder
  • Add latest 2.x tests

Motivation

Additional Notes

@amarziali amarziali requested a review from a team as a code owner December 6, 2022 16:15
@@ -63,9 +63,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.HTTP_HOSTNAME" "localhost"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"$Tags.HTTP_ROUTE" "$urlPathWithVariables"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually this diff is not correctly displayed (because maybe the file has been moved). But basically before was commented out (with a BUG mention). Now is uncommented and correclty asserted

@amarziali amarziali force-pushed the andrea.marziali/webflux-path branch from f2c3fe8 to 41b582b Compare December 6, 2022 16:42
@amarziali amarziali changed the title fix spring webflux path extraction + improve webflux tests fix spring webflux route extraction + improve webflux tests Dec 7, 2022
@amarziali amarziali added the inst: spring Spring instrumentation label Dec 7, 2022
@amarziali amarziali force-pushed the andrea.marziali/webflux-path branch from 41b582b to ce1f653 Compare December 15, 2022 16:56
@bantonsson bantonsson added the inst: others All other instrumentations label Dec 16, 2022
@amarziali amarziali force-pushed the andrea.marziali/webflux-path branch from ce1f653 to e6b8756 Compare December 19, 2022 11:05
@amarziali amarziali requested a review from bantonsson December 19, 2022 11:06
@amarziali amarziali merged commit efd84a2 into master Dec 19, 2022
@amarziali amarziali deleted the andrea.marziali/webflux-path branch December 19, 2022 15:26
@github-actions github-actions bot added this to the 1.3.0 milestone Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inst: others All other instrumentations inst: spring Spring instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants