Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2026 Changes in this version + const EventLLMIO + const EventProtection + const EventSessionStart + const EventSessionSummary + const EventToolIO + type Batched struct + func NewBatched(sender Sender, session string, interval time.Duration) *Batched + func (b *Batched) Close() error + func (b *Batched) Record(ev Event) + func (b *Batched) Report() Summary + type Event struct + Action string + AgentFramework string + CacheReadTokens int64 + CacheWriteTokens int64 + Data map[string]any + EndpointID string + Err string + InputTokens int64 + InstanceKey string + LatencyMS float64 + Model string + Name string + OccurredAt time.Time + Operation string + OutputTokens int64 + ParentSpanID string + Provider string + Reason string + RequestFull string + RequestID string + ResponseFull string + SessionID string + SpanID string + Stage string + Streaming *bool + TotalTokens int64 + TraceID string + Type string + type Noop struct + func (Noop) Close() error + func (Noop) Record(Event) + func (Noop) Report() Summary + type Recorder struct + func NewRecorder() *Recorder + func (r *Recorder) Close() error + func (r *Recorder) Record(ev Event) + func (r *Recorder) Report() Summary + type Sender func(ctx context.Context, batchJSON []byte) error + type Summary struct + Allowed int + ByStage map[string]int + Checks int + Denied int + Errors int + TotalMS float64 + Warned int + func (s Summary) String() string + type Telemetry interface + Close func() error + Record func(ev Event) + Report func() Summary