couchbase
    Preparing search index...

    Interface RequestTracer

    Interface for creating and managing distributed tracing spans.

    A RequestTracer is responsible for creating new spans to track operations.

    interface RequestTracer {
        requestSpan(
            name: string,
            parentSpan?: RequestSpan,
            startTime?: TimeInput,
        ): RequestSpan;
    }

    Implemented by

    Index

    Methods

    Methods

    • Creates a new span to trace an operation.

      Parameters

      • name: string

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

      • OptionalparentSpan: RequestSpan

        Optional parent span for creating hierarchical traces.

      • OptionalstartTime: TimeInput

        Optional start time; defaults to current time if not provided.

      Returns RequestSpan

      A new RequestSpan instance.