java-spring-jaeger icon indicating copy to clipboard operation
java-spring-jaeger copied to clipboard

Mention the need to expose the client in the Spring config

Open samudurand opened this issue 5 years ago • 3 comments

My trace id was not being transmitted forward to the other service that I was calling with OpenFeign. The solution was to expose the client, as mentioned in this post https://stackoverflow.com/a/58696749/1660475

    @Bean
    public Client feignClient() {
        return new Client.Default(null, null);
    }

This should really be part of the readme.

samudurand avatar Jan 17 '20 13:01 samudurand

Hi,

Would you like to propse a Pull Request to add your suggestion to the Readme?

geoand avatar Jan 17 '20 13:01 geoand

Sure

samudurand avatar Jan 17 '20 13:01 samudurand

@geoand https://github.com/opentracing-contrib/java-spring-jaeger/pull/72

samudurand avatar Jan 17 '20 13:01 samudurand