Events - Point-in-Time Occurrences
Understanding events and how they track point-in-time occurrences during trace execution
Events are point-in-time occurrences that happen during the execution of a trace or span. They provide a timeline of what happened, when it happened, and what the context was at that moment.
🎯 What are Events?
Events represent:
- State changes during operation execution
- Important milestones in your application flow
- Error conditions and recovery actions
- User interactions and system responses
- Business logic decisions and outcomes
🏗️ Event Structure
Every event has:
- Name: Descriptive name of what happened
- Timestamp: When the event occurred
- Attributes: Key-value metadata about the event
- Span Context: Which span the event belongs to
📊 Event Categories
Operation Events
AI Events
Business Events
Error Events
🔄 Adding Events
Basic Event
Event with Rich Context
Conditional Events
🎯 Event Naming Conventions
Hierarchical Naming
Use dot notation to create logical hierarchies:
Action-Based Naming
Use action verbs to describe what happened:
📈 Event Attributes
Timestamp Attributes
Context Attributes
Result Attributes
Error Attributes
🎪 Event Patterns
Start/Complete Pattern
State Change Pattern
Retry Pattern
🔍 Event Analysis
Timeline Analysis
Events provide a timeline of what happened:
Event Frequency
Error Analysis
🚀 Next Steps
Now that you understand events, explore these related concepts:
- Traces - Complete request journeys
- Spans - Individual operations
- Attributes - Metadata and context
Best Practices
- Events Best Practices - Learn how to create effective events
Events provide the timeline and context that make your traces meaningful. They enable detailed analysis, debugging, and optimization of your AI applications.
Get Early Access to Noveum.ai Platform
Be the first one to get notified when we open Noveum Platform to more users. All users get access to Observability suite for free, early users get free eval jobs and premium support for the first year.