Spring open feign set custom header using baggage (or trace)
I’m developing a spring boot 3 application that must invoke some remote http services.
Inside the application there is a job executing some business logic.
In the business logic there is also the remote services invocation.
I’m trying to find a way to correlate the different http requests i.e. if the business logic is working on a specific object with an Id 123456
I’d like to set a custom header say x-object-id
, with value 123456
. The business logic does not interact directly with the different feign clients, but it uses some adapter.