@Test public void endSpan() { when(mockTraceService.startSpan("test span")).thenReturn(mockSpan); TraceContext traceContext = tracer.startSpan("test span"); tracer.endSpan(traceContext); verify(mockSpan).endSpan(); verifyNoMoreInteractions(mockSpan); }
@Override public void endSpan(TraceContext traceContext) { checkNotNull(traceContext); getSpan(traceContext).endSpan(); }
AppEngineTracer implements Tracer { @Override public void endSpan(TraceContext traceContext) { checkNotNull(traceContext); getSpan(traceContext).endSpan(); } }
AppEngineTracer implements Tracer { @Override public void endSpan(TraceContext traceContext) { checkNotNull(traceContext); getSpan(traceContext).endSpan(); } AppEngineTracer(com.google.appengine.api.labs.trace.TraceService traceService); }
AppEngineTracer implements Tracer { @Override public void endSpan(TraceContext traceContext) { checkNotNull(traceContext); getSpan(traceContext).endSpan(); } AppEngineTracer(com.google.appengine.api.labs.trace.TraceService traceService); @Override TraceContext startSpan(String name); @Override TraceContext startSpan(String name, StartSpanOptions options); @Override void endSpan(TraceContext traceContext); @Override void endSpan(TraceContext traceContext, EndSpanOptions options); @Override void annotateSpan(TraceContext traceContext, Labels labels); @Override void setStackTrace(TraceContext traceContext, StackTrace stackTrace); }
AppEngineTracer implements Tracer { @Override public void endSpan(TraceContext traceContext) { checkNotNull(traceContext); getSpan(traceContext).endSpan(); } AppEngineTracer(com.google.appengine.api.labs.trace.TraceService traceService); @Override TraceContext startSpan(String name); @Override TraceContext startSpan(String name, StartSpanOptions options); @Override void endSpan(TraceContext traceContext); @Override void endSpan(TraceContext traceContext, EndSpanOptions options); @Override void annotateSpan(TraceContext traceContext, Labels labels); @Override void setStackTrace(TraceContext traceContext, StackTrace stackTrace);  }