Class SpanKey
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.SpanKey
-
public final class SpanKey extends Object
Makes span keys for specific instrumentation accessible to enrich and suppress spans.
-
-
Field Summary
Fields Modifier and Type Field Description static SpanKeyALL_CLIENTSstatic SpanKeyCONSUMER_PROCESSstatic SpanKeySERVER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentelemetry.api.trace.SpanfromContextOrNull(io.opentelemetry.context.Context context)io.opentelemetry.context.ContextstoreInContext(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span span)
-
-
-
Method Detail
-
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)
-
-