SpanData
Standalone span representation for observe.traces() middleware.
Used when @opentelemetry/api is not installed.
Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
Record<string,string|number|boolean|string[]>
Span attributes (framework + GenAI).
endTime
Section titled “endTime”endTime:
number
End timestamp (epoch ms).
error?
Section titled “error?”
optionalerror?:object
Error details (when status is “error”).
message
Section titled “message”message:
string
type:
string
name:
string
Span name (framework or OTel convention depending on mode).
parentId?
Section titled “parentId?”
optionalparentId?:string
Parent span ID (undefined for root spans).
spanId
Section titled “spanId”spanId:
string
16-char hex span identifier.
startTime
Section titled “startTime”startTime:
number
Start timestamp (epoch ms).
status
Section titled “status”status:
"error"|"ok"
Span completion status.
traceId
Section titled “traceId”traceId:
string
32-char hex trace identifier.