Class ServerSpan


  • public final class ServerSpan
    extends Object
    This class encapsulates the context key for storing the current SpanKind.SERVER span in the Context.
    • Method Detail

      • fromContextOrNull

        public static @Nullable io.opentelemetry.api.trace.Span fromContextOrNull​(io.opentelemetry.context.Context context)
        Returns span of type SpanKind.SERVER 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 serverSpan)