Skip to main content

Span

Defined in: src/lib/logging/types.ts:174

A span representing a unit of work in a trace.

Properties

PropertyTypeDescriptionDefined in
attributes?AttributesAdditional attributes.src/lib/logging/types.ts:213
contextTraceContextTrace context for this span.src/lib/logging/types.ts:183
duration?numberDuration in milliseconds (calculated when span ends).src/lib/logging/types.ts:198
endTime?numberEnd time in milliseconds (set when span ends).src/lib/logging/types.ts:193
logs?LogRecord[]Logs emitted during this span.src/lib/logging/types.ts:218
namestringHuman-readable name for this span.src/lib/logging/types.ts:178
runtimeRuntimeThe runtime where this span was created.src/lib/logging/types.ts:203
startTimenumberStart time in milliseconds.src/lib/logging/types.ts:188
status?"error" | "ok"Status of the span.src/lib/logging/types.ts:208