Quick Start
Event Types
Context Event Types
General Event Types
Message Types
Context Event
Create Events
Trace Sinks
Base TraceSink
ContextListSink
Stores events in memory for later retrieval:ContextNoOpSink
Does nothing - useful for disabling tracing:Context Trace Emitter
High-level API for emitting trace events:Trace Context
Global trace context management:Custom Trace Sink
Create custom sinks for external integrations:Common Patterns
- Debug Tracing
- Error Tracking
Best Practices
Use structured trace IDs
Use structured trace IDs
Include
traceId and spanId for distributed tracing across services.Buffer events for performance
Buffer events for performance
Batch events before sending to external services to reduce overhead.
Use NoOpSink in production
Use NoOpSink in production
Disable tracing in production unless needed to avoid performance impact.

