NoOpSpanProcessor
A no-op span processor that discards all spans.
Used when monitoring is disabled or credentials are missing.
Attributes
PropType
tracer?BaseTracer | null
Type
BaseTracer | nullstateSet()
Store a value in the mutable state for a span.
function stateSet(spanContext: SpanContext, key: string, value: unknown): void
Parameters
PropType
spanContextSpanContext
Type
SpanContextkeystring
Type
stringvalueunknown
Type
unknownReturns
void
stateGet()
Retrieve a value from the mutable state for a span.
function stateGet(spanContext: SpanContext, key: string, defaultValue: T): T
Parameters
PropType
spanContextSpanContext
Type
SpanContextkeystring
Type
stringdefaultValueT
Type
TReturns
T
stateIncr()
Atomically increment a counter. Returns the value before increment.
function stateIncr(spanContext: SpanContext, key: string): number
Parameters
PropType
spanContextSpanContext
Type
SpanContextkeystring
Type
stringReturns
number
stateAppend()
Atomically append to a list. Returns the new list.
function stateAppend(spanContext: SpanContext, key: string, item: T): T[]
Parameters
PropType
spanContextSpanContext
Type
SpanContextkeystring
Type
stringitemT
Type
TReturns
T[]
emitPartial()
Export the current span’s in-progress state for streaming updates.
function emitPartial(): void
Returns
void