Event Structure
All events share a common envelope with event-specific data:Envelope Fields
| Field | Type | Description |
|---|---|---|
oisp_version | string | Specification version (“0.1”) |
event_id | string | Unique event ID (ULID) |
event_type | string | Event type (e.g., “ai.request”) |
ts | string | ISO 8601 timestamp |
ts_mono | number? | Monotonic timestamp (optional) |
host | object | Host information |
actor | object? | User/service identity |
process | object | Process information |
source | object | Collector information |
confidence | object | Data completeness |
attrs | object? | Custom attributes |
trace_context | object? | Distributed tracing |
related_events | array? | Related event IDs |
Event Types
ai.request
AI model request:ai.response
AI model response:ai.streaming_chunk
SSE streaming chunk:agent.tool_call
Agent tool invocation:agent.tool_result
Tool execution result:process.exec
Process execution:process.exit
Process termination:file.open
File open operation:network.connect
Network connection:Provider Information
Theprovider object identifies the AI service:
openai- OpenAI APIanthropic- Anthropic Claudegoogle- Google AI (Gemini)mistral- Mistral AIcohere- Cohereaws_bedrock- AWS Bedrockazure_openai- Azure OpenAIollama- Local Ollamavllm- vLLM serveropenrouter- OpenRoutertogether- Together AIanyscale- Anyscale Endpointsgroq- Groqfireworks- Fireworks AIperplexity- Perplexity AIdeepinfra- DeepInfra