Skip to content

Span

Defined in: src/tracing/Tracer.ts:53

readonly ended: boolean

Defined in: src/tracing/Tracer.ts:62

True after end() has been called.

context(): SpanContext

Defined in: src/tracing/Tracer.ts:55

The span’s own context — what children would inherit.

SpanContext


end(endTimeMs?): void

Defined in: src/tracing/Tracer.ts:60

End the span. Idempotent — second call is a no-op.

number

void


recordException(err): this

Defined in: src/tracing/Tracer.ts:58

Error

this


setAttribute(key, value): this

Defined in: src/tracing/Tracer.ts:56

string

AttributeValue

this


setStatus(status, message?): this

Defined in: src/tracing/Tracer.ts:57

"ok" | "error"

string

this