class TraceMongoCommandListener implements CommandListener {

  @Override public void commandSucceeded(CommandSucceededEvent event) {
    Span span = threadLocalSpan.remove();
    if (span == null) return;
    span.finish();
  }

    TraceMongoCommandListener(MongoDBTracing mongoDBTracing);
    TraceMongoCommandListener(ThreadLocalSpan threadLocalSpan);

}