spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Deprecate Micrometer Tracing code in favor of tracing in MongoDB driver

Open mp911de opened this issue 5 months ago • 0 comments

We should deprecated our Micrometer Tracing implementation in favor of MongoDB's OpenTelemetry implementation in the driver. MongoObservationCommandListener.

Observation through MongoObservationCommandListener creates distributed tracing spans including context propagation and it creates long-task timers (e.g. spring.data.mongodb.command.active) that are sent to observability systems (e.g. Prometheus) using a set of tags.

Having an implementation on the Spring Data level while Spring Boot configures a different metrics implementation (see #4926) is unfortunate and that can be solved by having metrics and tracing directly within the driver.

mp911de avatar Jun 26 '25 06:06 mp911de