@Test public void testCurrentSpan() { final Span span = mock(Span.class); when(mockTracer.getCurrentSpan()).thenReturn(span); final Span result = kermossTracerUnderTest.currentSpan(); verify(mockTracer).getCurrentSpan(); assertEquals(span, result); }
public Span currentSpan() { return tracer.getCurrentSpan(); }
KermossTracer { public Span currentSpan() { return tracer.getCurrentSpan(); } }
KermossTracer { public Span currentSpan() { return tracer.getCurrentSpan(); }  }
KermossTracer { public Span currentSpan() { return tracer.getCurrentSpan(); }  @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT) void closeSpan(GtxSpanStarted gtxSpanStarted); @TransactionalEventListener(phase = TransactionPhase.AFTER_ROLLBACK) void closeSpanE(GtxSpanStarted gtxSpanStarted); Span startGtxSpan(String name, String gtx, String traceId, Span span); Span startGtxSpan(GlobalTransaction gt, Span span); Span startNestedSpan(String name, String event, Span span); void closeSpan(Span span); Span currentSpan(); }
KermossTracer { public Span currentSpan() { return tracer.getCurrentSpan(); }  @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT) void closeSpan(GtxSpanStarted gtxSpanStarted); @TransactionalEventListener(phase = TransactionPhase.AFTER_ROLLBACK) void closeSpanE(GtxSpanStarted gtxSpanStarted); Span startGtxSpan(String name, String gtx, String traceId, Span span); Span startGtxSpan(GlobalTransaction gt, Span span); Span startNestedSpan(String name, String event, Span span); void closeSpan(Span span); Span currentSpan();  }