io.grpc.Context.Key Java Examples
The following examples show how to use
io.grpc.Context.Key.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OpenTracingContextKeyTest.java From java-grpc with Apache License 2.0 | 4 votes |
@Test public void testGetKey() { Context.Key<Span> key = OpenTracingContextKey.getKey(); assertEquals("Key should have correct name", key.toString(), (OpenTracingContextKey.KEY_NAME)); }
Example #2
Source File: OpenTracingContextKeyTest.java From java-grpc with Apache License 2.0 | 4 votes |
@Test public void testGetSpanContextKey() { Key<SpanContext> key = OpenTracingContextKey.getSpanContextKey(); assertEquals( "Key should have correct name", key.toString(), OpenTracingContextKey.KEY_CONTEXT_NAME); }
Example #3
Source File: GrpcSpanContextHandler.java From cloud-trace-java with Apache License 2.0 | 4 votes |
public GrpcSpanContextHandler(Key<SpanContext> contextKey) { this.contextKey = contextKey; }