Class ServerSpan
java.lang.Object
io.opentelemetry.instrumentation.api.server.ServerSpan
Deprecated.
This class encapsulates the context key for storing the current
SpanKind.SERVER span in
the Context.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.api.trace.SpanfromContextOrNull(io.opentelemetry.context.Context context) Deprecated.Returns span of typeSpanKind.SERVERfrom the given context ornullif not found.
-
Method Details
-
fromContextOrNull
@Nullable public static io.opentelemetry.api.trace.Span fromContextOrNull(io.opentelemetry.context.Context context) Deprecated.Returns span of typeSpanKind.SERVERfrom the given context ornullif not found.
-
LocalRootSpaninstead.