You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
We are logging the outgoing FeignClient requests in our Spring Boot applications.
These logs include traceId, spanId and parentId.
On the called service side the same information gets logged (e.g. when logging the incoming HTTP request).
Since the migration to micrometer (i.e. Spring Boot 2.7 to Spring Boot 3.1/3.2 migration) the "chain of spanId" is missing.
Note: a sample application with minimal dependencies has been created to demonstrate the issue.
The sample app provides a /doit endpoint which invokes its second endpoint /execute using a FeignClient.
in Spring Boot 2.7
Previous to the migration to micrometer it used to look like:
I do have Spring Cloud Gateway running and behind that several microservices. To all projects, I added the dependencies io.micrometer:micrometer-tracing and io.micrometer:micrometer-tracing-bridge-otel. Now the gateway creates a new traceId and forwards this id to the downstream microservices via the traceparent header.
But the traceId is not forwarded when making feign calls from one microservice to another. For that i added io.github.openfeign:feign-micrometer to the microservice which makes the call. But unfortunately the traceId is still not passed on and no traceparent header is attached to the feign call.
The feign client is generated via the OpenAPI Generator from a swagger file.
Hi all,
We are logging the outgoing FeignClient requests in our Spring Boot applications.
These logs include traceId, spanId and parentId.
On the called service side the same information gets logged (e.g. when logging the incoming HTTP request).
Since the migration to micrometer (i.e. Spring Boot 2.7 to Spring Boot 3.1/3.2 migration) the "chain of spanId" is missing.
Note: a sample application with minimal dependencies has been created to demonstrate the issue.
The sample app provides a
/doit
endpoint which invokes its second endpoint/execute
using a FeignClient.in Spring Boot 2.7
Previous to the migration to micrometer it used to look like:
Where the parentId on the called server side is equals to the spanId logged on the client side. In the example above:
ac648962656d9825
in Spring Boot 3.2
After the migration to micrometer i.e. Spring Boot 3.1/3.2 it looks like:
Where the spanId
9361afdcea28771e
logged on the client side is not present in the log on the server side.Can this be configured?
How can we get the whole "chain of spanId" back?
It is very important to us so we can chain the logs correctly together.
Please find 2 samples in the attachment:
Just start the Spring Boot app and call the
/doit
endpoint:Kind regards,
Valentin
The text was updated successfully, but these errors were encountered: