public class OpenTracingContextKey extends Object
Context
key for the current OpenTracing trace state.
Can be used to get the active span, or to set the active span for a scoped unit of work. See the
grpc-java OpenTracing docs for use cases and
examples.Modifier and Type | Field and Description |
---|---|
static String |
KEY_CONTEXT_NAME |
static String |
KEY_NAME |
Constructor and Description |
---|
OpenTracingContextKey() |
Modifier and Type | Method and Description |
---|---|
static io.opentracing.Span |
activeSpan() |
static io.opentracing.SpanContext |
activeSpanContext() |
static io.grpc.Context.Key<io.opentracing.Span> |
getKey() |
static io.grpc.Context.Key<io.opentracing.SpanContext> |
getSpanContextKey() |
public static final String KEY_NAME
public static final String KEY_CONTEXT_NAME
public static io.opentracing.Span activeSpan()
public static io.grpc.Context.Key<io.opentracing.Span> getKey()
public static io.grpc.Context.Key<io.opentracing.SpanContext> getSpanContextKey()
public static io.opentracing.SpanContext activeSpanContext()
Copyright © 2017-2019–2019. All rights reserved.