LogEvent
Structured log event emitted by observe.log() middleware. Consumable by Datadog, Grafana, ELK, etc.
Properties
Section titled “Properties”data:
Record<string,unknown>
Event-specific data (model, tokens, cost, tool name, duration, error).
sessionId
Section titled “sessionId”sessionId:
string
Session identifier.
timestamp
Section titled “timestamp”timestamp:
string
ISO 8601 timestamp.
turnIndex
Section titled “turnIndex”turnIndex:
number
Turn number within this session.
type:
string
Event type: “model:call”, “model:response”, “tool:call”, “tool:result”, “retry”, “error”, etc.