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

Support for tracing webflux-6.x and gateway-4.x #661

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

CzyerChen
Copy link
Contributor

Add support for spring-cloud-gateway 4.x

  • Add a unit test to verify that the fix works.
  • Explain briefly why the bug exists and how to fix it.

why:
spring-cloud-starter-gateway 4.0.0 depends on spring-boot-starter-webflux 3.0.0
spring-boot-starter-webflux 3.0.0 depends on spring-webflux 6.0.2
spring-webflux-5.x plugin can not trace the request
how:
add support for spring-webflux-6.x diff from 5.x by witnessmethod
upgrade spring-cloud-gateway to 4.x with spring-webflux-6.x diff from 3.x by witnessclass

Add an agent plugin to support spring-cloud-gateway 4.x

@wu-sheng wu-sheng added this to the 9.2.0 milestone Dec 19, 2023
segments:
- segmentId: not null
spans:
- operationName: /provider/timeout/error
Copy link
Member

Choose a reason for hiding this comment

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

Is this timeout built intentionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in order to check error case.
image

Copy link
Member

Choose a reason for hiding this comment

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

My question is, are the codes causing the timeout on testing purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

according to gateway3.x, in order to check request timeout case, so add the testcasse, issue

segments:
- segmentId: not null
spans:
- operationName: /provider/timeout/error
Copy link
Member

Choose a reason for hiding this comment

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

Why is a timeout for entry? How an entry span timeout?

@wu-sheng
Copy link
Member

Could you confirm this #661 (comment)? If the codes don't seem to trigger error, we should not have them in the expected data.

Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

Thanks for adding this.

@wu-sheng wu-sheng changed the title Support for tracing spring-cloud-gateway 4.x in gateway-4.x-plugin Support for tracing webflux-6.x and gateway-4.x Dec 21, 2023
@wu-sheng wu-sheng merged commit 7aec682 into apache:main Dec 21, 2023
187 checks passed
@CzyerChen CzyerChen deleted the feature/gateway4x branch May 11, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants