RecordingTracerOptions
RecordingTracerOptions =
object
Defined in: src/tracing/RecordingTracer.ts:63
Properties
Section titled “Properties”maxRecorded?
Section titled “maxRecorded?”
readonlyoptionalmaxRecorded?:number
Defined in: src/tracing/RecordingTracer.ts:77
Cap on the in-memory recording, oldest evicted first.
Unset means unbounded, which is right for a test that asserts over
every span but wrong for anything long-lived: a tracer left enabled
on a busy system grows without limit. Set 0 to keep none at all —
the sensible choice when onSpanEnd is the real sink and
recorded() is never read.
onSpanEnd?
Section titled “onSpanEnd?”
readonlyoptionalonSpanEnd?: (span) =>void
Defined in: src/tracing/RecordingTracer.ts:65
Hook invoked when a span ends — wire to your exporter here.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
sampler?
Section titled “sampler?”
readonlyoptionalsampler?: (name,options) =>boolean
Defined in: src/tracing/RecordingTracer.ts:67
Sampling decision per span. Default () => true (sample all).
Parameters
Section titled “Parameters”string
options
Section titled “options”SpanOptions | undefined
Returns
Section titled “Returns”boolean
