Spring-cloud-sleuth: Create a SleuthMongoConfiguration class to tag Mongodb as a remote service

Created on 7 May 2020  路  4Comments  路  Source: spring-cloud/spring-cloud-sleuth

Hi,

Now that brave-instrumentation-mongodb has been released

<dependency>
            <groupId>io.zipkin.brave</groupId>
            <artifactId>brave-instrumentation-mongodb</artifactId>
            <version>5.12.3</version>
</dependency>  

See https://github.com/openzipkin/brave/tree/master/instrumentation/mongodb

Can we add SleuthMongoConfiguration (Similar to SleuthKafkaConfiguration and TraceRedisAutoConfiguration ) so we can tag MongoDB as a remote service?

Thanks

enhancement

Most helpful comment

seems reasonable to me.

All 4 comments

seems reasonable to me.

Sure, @davidmelia are you willing to give it a try in a PR? :)

Hey @davidmelia are you willing to take the 3.0.0-SNAPSHOT for a spin with your Mongo installation?

@marcingrzejszczak works great - thanks for this :-)

Screenshot 2020-07-01 at 08 41 26

Was this page helpful?
0 / 5 - 0 ratings