NoOpSpanProcessor
A no-op span processor that discards all spans. Used when monitoring is disabled or credentials are missing.
A no-op span processor that discards all spans.
Used when monitoring is disabled or credentials are missing.
Attributes
tracer
:BaseTracer | null
stateSet()
Store a value in the mutable state for a span.
function stateSet(spanContext: SpanContext, key: string, value: unknown): voidParameters
spanContext
required:SpanContext
key
required:string
value
required:unknown
Returns
void
stateGet()
Retrieve a value from the mutable state for a span.
function stateGet(spanContext: SpanContext, key: string, defaultValue: T): TParameters
spanContext
required:SpanContext
key
required:string
defaultValue
required:T
Returns
T
stateIncr()
Atomically increment a counter. Returns the value before increment.
function stateIncr(spanContext: SpanContext, key: string): numberParameters
spanContext
required:SpanContext
key
required:string
Returns
number
stateAppend()
Atomically append to a list. Returns the new list.
function stateAppend(spanContext: SpanContext, key: string, item: T): T[]Parameters
spanContext
required:SpanContext
key
required:string
item
required:T
Returns
T[]
emitPartial()
Export the current span's in-progress state for streaming updates.
function emitPartial(): voidReturns
void
JudgmentSpanProcessor
Span processor that manages span lifecycle, state, and batched export to the Judgment platform. Supports per-span state (counters, lists), partial-span emission for streaming updates, and baggage propagation onto child spans. Created automatically by `Tracer.init()`. Use it directly only when building a custom tracing pipeline.
JudgmentBaggageSpanProcessor
Span processor that copies baggage entries onto span attributes at span start. Use `keyPredicate` to control which keys are propagated.
Last updated on