class TracingCommandListener implements CommandListener {

  public void commandSucceeded(CommandSucceededEvent event) {
    MongoDBCommandTraceContext commandContext = contexts.get();
    if (commandContext == null || commandContext.getRequestId() != event.getRequestId()) {
      contexts.remove();
      return;
    }
    Labels.Builder labels = Labels.builder();
    labels.add(MongoLabels.STATUS, "SUCCESS");
    tracer.annotateSpan(commandContext.getContext(), labels.build());
    tracer.endSpan(commandContext.getContext());
    contexts.remove();
  }

  public  TracingCommandListener();
  public  TracingCommandListener(Tracer tracer);

}