Class MongoObservationCommandListener

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

@Deprecated(since="5.1", forRemoval=true) public class MongoObservationCommandListener extends Object implements CommandListener
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.1 in favor of native MongoDB Java Driver observability support.
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