Class SpanKey
java.lang.Object
io.opentelemetry.instrumentation.api.internal.SpanKey
Makes span keys for specific instrumentation accessible to enrich and suppress spans.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.trace.SpanfromContextOrNull(io.opentelemetry.context.Context context) io.opentelemetry.context.ContextstoreInContext(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span span) toString()
-
Field Details
-
KIND_SERVER
-
KIND_CLIENT
-
KIND_CONSUMER
-
KIND_PRODUCER
-
HTTP_SERVER
-
RPC_SERVER
-
HTTP_CLIENT
-
RPC_CLIENT
-
DB_CLIENT
-
PRODUCER
-
CONSUMER_RECEIVE
-
CONSUMER_PROCESS
-
-
Method Details
-
storeInContext
public io.opentelemetry.context.Context storeInContext(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span span) -
fromContextOrNull
@Nullable public io.opentelemetry.api.trace.Span fromContextOrNull(io.opentelemetry.context.Context context) -
toString
-