类io.grpc.Context.Key源码实例Demo

下面列出了怎么用io.grpc.Context.Key的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: java-grpc   文件: OpenTracingContextKeyTest.java
@Test
public void testGetKey() {
  Context.Key<Span> key = OpenTracingContextKey.getKey();
  assertEquals("Key should have correct name", key.toString(), (OpenTracingContextKey.KEY_NAME));
}
 
源代码2 项目: java-grpc   文件: OpenTracingContextKeyTest.java
@Test
public void testGetSpanContextKey() {
  Key<SpanContext> key = OpenTracingContextKey.getSpanContextKey();
  assertEquals(
      "Key should have correct name", key.toString(), OpenTracingContextKey.KEY_CONTEXT_NAME);
}
 
源代码3 项目: cloud-trace-java   文件: GrpcSpanContextHandler.java
public GrpcSpanContextHandler(Key<SpanContext> contextKey) {
  this.contextKey = contextKey;
}
 
 类所在包
 类方法
 同包方法