RecordedSpan
Defined in: src/tracing/RecordingTracer.ts:36
Reference Tracer implementation. Generates real ids,
tracks span hierarchy via parent context, propagates the active
span through AsyncLocalStorage, and records ended spans into an
in-memory buffer for assertions.
Production usage: the recorder list is your sink. For full
OpenTelemetry export, pass each completed span through to the OTel
SDK in onSpanEnd — or write a thin adapter that delegates the
Tracer calls to @opentelemetry/api.trace.getTracer(...).
This impl is not an OpenTelemetry SDK — it doesn’t sample, batch, or export. Its role is the in-process backbone for actor-ts’s instrumentation; the SDK boundary lives in the adapter layer.
Properties
Section titled “Properties”attributes
Section titled “attributes”
readonlyattributes:Readonly<Record<string,AttributeValue>>
Defined in: src/tracing/RecordingTracer.ts:43
context
Section titled “context”
readonlycontext:SpanContext
Defined in: src/tracing/RecordingTracer.ts:39
endTimeMs
Section titled “endTimeMs”
readonlyendTimeMs:number
Defined in: src/tracing/RecordingTracer.ts:42
exceptions
Section titled “exceptions”
readonlyexceptions: readonlyError[]
Defined in: src/tracing/RecordingTracer.ts:46
readonlykind:SpanKind
Defined in: src/tracing/RecordingTracer.ts:38
readonlyname:string
Defined in: src/tracing/RecordingTracer.ts:37
parent
Section titled “parent”
readonlyparent:SpanContext|null
Defined in: src/tracing/RecordingTracer.ts:40
startTimeMs
Section titled “startTimeMs”
readonlystartTimeMs:number
Defined in: src/tracing/RecordingTracer.ts:41
status
Section titled “status”
readonlystatus:SpanStatus
Defined in: src/tracing/RecordingTracer.ts:44
statusMessage?
Section titled “statusMessage?”
readonlyoptionalstatusMessage?:string
Defined in: src/tracing/RecordingTracer.ts:45