Class ClientSpan


  • @Deprecated
    public final class ClientSpan
    extends Object
    Deprecated.
    This class should not be used directly; it's functionality is encapsulated inside the Instrumenter API.
    This class encapsulates the context key for storing the current SpanKind.CLIENT span in the Context.
    • Method Detail

      • exists

        public static boolean exists​(io.opentelemetry.context.Context context)
        Deprecated.
        Returns true when a SpanKind.CLIENT span is present in the passed context.
      • fromContextOrNull

        @Nullable
        public static io.opentelemetry.api.trace.Span fromContextOrNull​(io.opentelemetry.context.Context context)
        Deprecated.
        Returns span of type SpanKind.CLIENT from the given context or null if not found.
      • with

        public static io.opentelemetry.context.Context with​(io.opentelemetry.context.Context context,
                                                            io.opentelemetry.api.trace.Span clientSpan)
        Deprecated.