bullmq - v5.64.0
    Preparing search index...

    Function trace

    • Wraps the code with telemetry and provides a span for configuration.

      Type Parameters

      • T

      Parameters

      • telemetry: { contextManager: ContextManager; tracer: Tracer }

        telemetry configuration. If undefined, the callback will be executed without telemetry.

      • spanKind: SpanKind

        kind of the span: Producer, Consumer, Internal

      • queueName: string

        queue name

      • operation: string

        operation name (such as add, process, etc)

      • destination: string

        destination name (normally the queue name)

      • callback: (span?: Span, dstPropagationMetadata?: string) => T | Promise<T>

        code to wrap with telemetry

      • OptionalsrcPropagationMetadata: string

      Returns Promise<T>