opentracing-contrib / java-mongo-driver

OpenTracing Instrumentation for Mongo Driver
Apache License 2.0
13 stars 12 forks source link

Instrumentation for Reactive Mongo Driver #18

Open privettoli opened 4 years ago

privettoli commented 4 years ago

I'm sorry if this is answered in documentation I was unable to find any information on instrumentation support of Mongo Reactive driver (org.mongodb:mongodb-driver-reactivestreams) Is this currently not implemented?

privettoli commented 4 years ago

Was able to setup it this way:

@Bean
public MongoClientSettingsBuilderCustomizer reactiveStreamsMongoClientSettingsBuilderCustomizer(Tracer tracer) {
  return builder -> builder.addCommandListener(new TracingCommandListener.Builder(tracer).build());
}

My problem solved, but the question is still valid.

malafeev commented 4 years ago

yes, it's definitely missing part.