List of usage examples for com.mongodb.event CommandListener interface-usage
From source file com.google.cloud.trace.mongodb.TracingCommandListener.java
/** * Traces each commands sent that is sent to the MongoDB server. It records start and end * timestamps, the request id, the database name, the collection name, the request id, the command's * batch size, and result status. */ public class TracingCommandListener implements CommandListener {
From source file io.opentracing.contrib.mongo.TracingCommandListener.java
/** * In Async Mongo driver methods of this Listener run in different threads therefore cache is used */ public class TracingCommandListener implements CommandListener { static final String COMPONENT_NAME = "java-mongo";
From source file org.eclipse.ditto.services.utils.persistence.mongo.monitoring.KamonCommandListener.java
/** * Reports elapsed time for every MongoDB command to Kamon. */ public class KamonCommandListener implements CommandListener { private static final Logger LOGGER = LoggerFactory.getLogger(KamonCommandListener.class);