couchbase
    Preparing search index...

    Class OTelWrapperSpan

    Wrapper class for OpenTelemetry Span that implements RequestSpan interface.

    Implements

    Index

    Constructors

    • Creates an instance of OTelWrapperSpan.

      Parameters

      • otelSpan: Span

        OpenTelemetry Span to wrap.

      • name: string

        The name of the span.

      Returns OTelWrapperSpan

    Properties

    _otelSpan: Span
    name: string

    The name of the span, describing the operation being traced.

    Methods

    • Adds an event to the span.

      Parameters

      • key: string

        The event key.

      • OptionalstartTime: TimeInput

        Optional timestamp for the event.

      Returns void

    • Ends the span.

      Parameters

      • OptionalendTime: TimeInput

        Optional timestamp for when the span ended.

      Returns void

    • Sets an attribute on the span.

      Parameters

      • key: string

        The attribute key.

      • value: AttributeValue

        The attribute value.

      Returns void

    • Sets the status of the span.

      Parameters

      • status: SpanStatus

        The SpanStatus to set.

      Returns void