Skip to content
Judgment Labs
Esc
navigateopen⌘Jpreview
On this page

JudgmentBaggageSpanProcessor

Span processor that copies baggage entries onto span attributes at span start. Use `keyPredicate` to control which keys are propagated.

const processor = new JudgmentBaggageSpanProcessor(
  (key) => key.startsWith("judgment."),
);

onStart()

Copy matching baggage entries from the parent context onto the span.

function onStart(span: Span, parentContext: Context): void

Parameters

PropType
spanSpan
TypeSpan
parentContextContext
TypeContext

Returns

void


onEnd()

No-op.

function onEnd(_span: ReadableSpan): void

Parameters

PropType
_spanReadableSpan
TypeReadableSpan

Returns

void


forceFlush()

No-op.

async function forceFlush(): Promise<void>

Returns

Promise<void>


shutdown()

No-op.

async function shutdown(): Promise<void>

Returns

Promise<void>

Was this page helpful?