Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + type ToolAggregate struct + CallCount int + Errors int + TotalBytes int64 + TotalMs int64 + type ToolAggregator struct + func NewToolAggregator() *ToolAggregator + func (a *ToolAggregator) All() map[string]*ToolAggregate + func (a *ToolAggregator) Get(toolName string) *ToolAggregate + func (a *ToolAggregator) Record(toolName string, bytes int64, durationMs int64, isError bool) + func (a *ToolAggregator) Reset() + type ToolExecution struct + Duration time.Duration + Error string + Name string + StartTime time.Time + Success bool + type ToolMetrics struct + Calls int + Failures int + Name string + TotalDuration time.Duration + func (m *ToolMetrics) AvgDuration() time.Duration + func (m *ToolMetrics) SuccessRate() float64 + type ToolMonitor struct + func NewToolMonitor() *ToolMonitor + func (tm *ToolMonitor) End(name, callID string, success bool, errMsg string) + func (tm *ToolMonitor) Start(name, callID string) + func (tm *ToolMonitor) Stats() ToolStats + type ToolStats struct + ActiveCalls int + FailedCalls int + PerTool map[string]*ToolMetrics + SuccessCalls int + TotalCalls int + TotalDuration time.Duration v0.1.0 May 12, 2026 Changes in this version + type Counter struct + func (c *Counter) Add(n int64) + func (c *Counter) Inc() + func (c *Counter) Value() int64 + type Gauge struct + func (g *Gauge) Dec() + func (g *Gauge) Inc() + func (g *Gauge) Set(v int64) + func (g *Gauge) Value() int64 + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Counter(name string) *Counter + func (r *Registry) Format() string + func (r *Registry) Gauge(name string) *Gauge + func (r *Registry) Snapshot() map[string]interface{} + func (r *Registry) Timer(name string) *Timer + type Timer struct + func NewTimer() *Timer + func (t *Timer) Record(d time.Duration) + func (t *Timer) Stats() TimerStats + func (t *Timer) Time(fn func()) time.Duration + type TimerStats struct + Count int64 + Max time.Duration + Mean time.Duration + Min time.Duration + Total time.Duration