Span
Defined in: src/lib/logging/types.ts:174
A span representing a unit of work in a trace.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
attributes? | Attributes | Additional attributes. | src/lib/logging/types.ts:213 |
context | TraceContext | Trace context for this span. | src/lib/logging/types.ts:183 |
duration? | number | Duration in milliseconds (calculated when span ends). | src/lib/logging/types.ts:198 |
endTime? | number | End 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 |
name | string | Human-readable name for this span. | src/lib/logging/types.ts:178 |
runtime | Runtime | The runtime where this span was created. | src/lib/logging/types.ts:203 |
startTime | number | Start time in milliseconds. | src/lib/logging/types.ts:188 |
status? | "error" | "ok" | Status of the span. | src/lib/logging/types.ts:208 |