@Test public void getCurrent_noContext() { when(mockSpan.getContext()).thenReturn(null); SpanContextHandle handle = new AppEngineSpanContextHandle(mockSpan); SpanContext current = handle.getCurrentSpanContext(); assertThat(current).isEqualTo( new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions())); }
@Override public SpanContext getCurrentSpanContext() { return getSpanContext(span.getContext()); }
AppEngineSpanContextHandle implements SpanContextHandle { @Override public SpanContext getCurrentSpanContext() { return getSpanContext(span.getContext()); } }
AppEngineSpanContextHandle implements SpanContextHandle { @Override public SpanContext getCurrentSpanContext() { return getSpanContext(span.getContext()); } AppEngineSpanContextHandle(Span span); }
AppEngineSpanContextHandle implements SpanContextHandle { @Override public SpanContext getCurrentSpanContext() { return getSpanContext(span.getContext()); } AppEngineSpanContextHandle(Span span); @Override SpanContext getCurrentSpanContext(); @Override void detach(); }
AppEngineSpanContextHandle implements SpanContextHandle { @Override public SpanContext getCurrentSpanContext() { return getSpanContext(span.getContext()); } AppEngineSpanContextHandle(Span span); @Override SpanContext getCurrentSpanContext(); @Override void detach();  }