Class ClientSpan
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.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 currentSpanKind.CLIENTspan in theContext.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanexists(io.opentelemetry.context.Context context)Deprecated.Returns true when aSpanKind.CLIENTspan is present in the passedcontext.static io.opentelemetry.api.trace.SpanfromContextOrNull(io.opentelemetry.context.Context context)Deprecated.Returns span of typeSpanKind.CLIENTfrom the given context ornullif not found.static io.opentelemetry.context.Contextwith(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span clientSpan)Deprecated.
-
-
-
Method Detail
-
exists
public static boolean exists(io.opentelemetry.context.Context context)
Deprecated.Returns true when aSpanKind.CLIENTspan is present in the passedcontext.
-
fromContextOrNull
@Nullable public static io.opentelemetry.api.trace.Span fromContextOrNull(io.opentelemetry.context.Context context)
Deprecated.Returns span of typeSpanKind.CLIENTfrom the given context ornullif not found.
-
with
public static io.opentelemetry.context.Context with(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span clientSpan)Deprecated.
-
-