Class MongoObservationCommandListener

java.lang.Object
org.springframework.data.mongodb.observability.MongoObservationCommandListener
All Implemented Interfaces:
CommandListener

public class MongoObservationCommandListener extends Object implements CommandListener
Implement MongoDB's CommandListener using Micrometer's Observation API.

NOTE: MongoDB Java Driver 5.7+ comes with observability directly built in which can be configured via MongoClientSettings.Builder#observabilitySettings(ObservabilitySettings). We recommend switching to the driver native observability.

Since:
4.0
Author:
OpenZipkin Brave Authors, Marcin Grzejszczak, Greg Turnquist, François Kha