JobsTracing
Trace propagation from producer to worker.
Methods
Section titled “Methods”inject()
Section titled “inject()”inject(
carrier):void
Writes the active trace context into carrier (W3C traceparent, tracestate).
Parameters
Section titled “Parameters”carrier
Section titled “carrier”Record<string, string>
Returns
Section titled “Returns”void
runInSpan()
Section titled “runInSpan()”runInSpan<
T>(name,attributes,carrier,fn):Promise<T>
Runs fn in a span that continues the trace found in carrier.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
attributes
Section titled “attributes”Readonly<Record<string, string | number>>
carrier
Section titled “carrier”Readonly<Record<string, string>>
(span) => Promise<T>
Returns
Section titled “Returns”Promise<T>