Class SpanKey


  • public final class SpanKey
    extends Object
    Makes span keys for specific instrumentation accessible to enrich and suppress spans.
    • Field Detail

      • SERVER

        public static final SpanKey SERVER
      • ALL_CLIENTS

        public static final SpanKey ALL_CLIENTS
      • CONSUMER_PROCESS

        public static final SpanKey CONSUMER_PROCESS
    • 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)