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
Type
SpanparentContextContext
Type
ContextReturns
void
onEnd()
No-op.
function onEnd(_span: ReadableSpan): void
Parameters
PropType
_spanReadableSpan
Type
ReadableSpanReturns
void
forceFlush()
No-op.
async function forceFlush(): Promise<void>
Returns
Promise<void>
shutdown()
No-op.
async function shutdown(): Promise<void>
Returns
Promise<void>