Skip to content

JobsTracing

Trace propagation from producer to worker.

inject(carrier): void

Writes the active trace context into carrier (W3C traceparent, tracestate).

Record<string, string>

void


runInSpan<T>(name, attributes, carrier, fn): Promise<T>

Runs fn in a span that continues the trace found in carrier.

T

string

Readonly<Record<string, string | number>>

Readonly<Record<string, string>>

(span) => Promise<T>

Promise<T>