spring-data-mongodb
spring-data-mongodb copied to clipboard
Deprecate Micrometer Tracing code in favor of tracing in MongoDB driver
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.