-
Notifications
You must be signed in to change notification settings - Fork 917
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
Spring Gateway - only requests to the gateway generates spans #10648
Comments
Could you please assign it to me? |
I 've tried 2 ways to solve this problem.
We should instrument the HttpClient after the gateway invoke |
@123liuziming I've just tried out integration with micrometer tracing - and got it to work Can you try if this also does the trick for this issue? |
Thanks, I will try it! |
I 've tried to use micrometer tracing in reactor-netty in my PR. It is hard to propagate context between server and client just using springboot starter(There will be different traceId between server and client). I believe that user need to propagate the context manually. |
In the Java SIG meeting yesterday, we decided that we don't want to support instrumentation based on micrometer tracing - see https://docs.google.com/document/d/1WK9h4p55p8ZjPkxO75-ApI9m0wfea6ENZmMoFRvXSCw/edit#bookmark=id.q3aculj8d8qn I should have clarified that before suggesting this possible solution - sorry about that! |
I'll descope this from spring starter GA - sounds like a longer discussion |
Hi! Just checking in to see if there have been any updates on this issue. Thanks a lot! |
see my answer above: #10648 (comment) |
No updates, we'd gladly accept a PR that implements this (without relying on micrometer tracing). |
Describe the bug
As is explained in this issue I've tried to use manual auto-implementation in a Spring Cloud Gateway API, when a request is made to the Gateway a span is generated correctly but I expect the requests to downstream services also generates a span.
Steps to reproduce
1- Add the following dependencies
2- Add the next code:
Here is a basic example: https://github.com/florenciazabala/otel-spring-gateway
Expected behavior
All requests should generate spans. I expect at least the request to the gateway api and the request to de core api generates spans.
Actual behavior
Only requests to the gateway generate a span.
Javaagent or library instrumentation version
opentelemetry-spring-boot-starter v2.0.0-alpha
Environment
JDK: 21
Additional context
No response
The text was updated successfully, but these errors were encountered: