JudgmentBaggageSpanProcessor
Span processor that copies baggage entries onto span attributes at span start. Use `keyPredicate` to control which keys are propagated.
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): voidParameters
span
required:Span
parentContext
required:Context
Returns
void
onEnd()
No-op.
function onEnd(_span: ReadableSpan): voidParameters
_span
required:ReadableSpan
Returns
void
forceFlush()
No-op.
async function forceFlush(): Promise<void>Returns
Promise<void>
shutdown()
No-op.
async function shutdown(): Promise<void>Returns
Promise<void>
NoOpSpanProcessor
A no-op span processor that discards all spans. Used when monitoring is disabled or credentials are missing.
OfflineJudgmentSpanProcessor
Span processor used by `OfflineTracer`. Extends `JudgmentSpanProcessor` (so it inherits batched export, span state, and partial-emit support) and additionally appends a new `Example` to the caller-supplied `dataset` list whenever a *root* span ends. Each emitted example carries the `offline_trace_id` of the trace plus any static `exampleFields` configured at init time.
Last updated on