bullmq - v5.56.2
    Preparing search index...

    Interface Span<Context>

    Span interface

    interface Span<Context = any> {
        addEvent(name: string, attributes?: Attributes): void;
        end(): void;
        recordException(exception: Exception, time?: Time): void;
        setAttribute(key: string, value: AttributeValue): void;
        setAttributes(attributes: Attributes): void;
        setSpanOnContext(ctx: Context): Context;
    }

    Type Parameters

    • Context = any
    Index

    Methods

    • end ends the span.

      Note: spans must be ended so that they can be exported.

      Returns void

    • setSpanOnContext sets the span on the context. This is useful when you want to propagate the span across the application.

      Parameters

      • ctx: Context

        context to set the span on

      Returns Context

      • the context with the span set on it