JaegerSpan implements Span { public String getOperationName() { synchronized (this) { return operationName; } } protected  JaegerSpan(
      JaegerTracer tracer,
      String operationName,
      JaegerSpanContext context,
      long startTimeMicroseconds,
      long startTimeNanoTicks,
      boolean computeDurationViaNanoTicks,
      Map<String, Object> tags,
      List<Reference> references); long getStart(); boolean isFinished(); long getDuration(); JaegerTracer getTracer(); List<Reference> getReferences(); Map<String, Object> getTags(); @Override JaegerSpan setOperationName(String operationName); String getOperationName(); String getServiceName(); List<LogData> getLogs(); @Override JaegerSpan setBaggageItem(String key, String value); @Override String getBaggageItem(String key); @Override String toString(); @Override JaegerSpanContext context(); @Override void finish(); @Override void finish(long finishMicros); @Override synchronized JaegerSpan setTag(String key, String value); @Override synchronized JaegerSpan setTag(String key, boolean value); @Override synchronized JaegerSpan setTag(String key, Number value); @Override synchronized Span setTag(Tag<T> tag, T value); @Override JaegerSpan log(Map<String, ?> fields); @Override JaegerSpan log(long timestampMicroseconds, Map<String, ?> fields); @Override JaegerSpan log(String event); @Override JaegerSpan log(long timestampMicroseconds, String event);  }
@Test public void testOperationName() { String expectedOperation = "leela"; JaegerSpan jaegerSpan = tracer.buildSpan(expectedOperation).start(); assertEquals(expectedOperation, jaegerSpan.getOperationName()); }