@Test public void getCurrent() { CloudTraceContext cloudTraceContext = new CloudTraceContext( new byte[] {(byte) 0x09, (byte) 0xa2, (byte) 0xf9, (byte) 0x9c, (byte) 0x6b, (byte) 0x34, (byte) 0xc6, (byte) 0xe1, (byte) 0x7a, (byte) 0x11, (byte) 0xcc, (byte) 0x0d, (byte) 0xa1, (byte) 0xb5, (byte) 0x04, (byte) 0x65, (byte) 0xcb, (byte) 0x72}, 123456789L, 1L); when(mockSpan.getContext()).thenReturn(cloudTraceContext); SpanContextHandle handle = new AppEngineSpanContextHandle(mockSpan); SpanContext current = handle.getCurrentSpanContext(); assertThat(current).isEqualTo( new SpanContext(new TraceId(new BigInteger("7ae1c6346b9cf9a272cb6504b5a10dcc", 16)), new SpanId(123456789L), new TraceOptions(1))); }
@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();  }