Versions in this module Expand all Collapse all v1 v1.0.0 Feb 1, 2026 Changes in this version + func SetGlobal(c *Collector) + type Collector struct + func Global() *Collector + func New() *Collector + func (c *Collector) GetAverageResponseTime() time.Duration + func (c *Collector) GetErrorsPerSecond() float64 + func (c *Collector) GetRequestsPerSecond() float64 + func (c *Collector) RecordAPIEndpoint() + func (c *Collector) RecordBytes(n int64) + func (c *Collector) RecordError(errorType string) + func (c *Collector) RecordFormFound() + func (c *Collector) RecordPageCrawled() + func (c *Collector) RecordPageDiscovered() + func (c *Collector) RecordRequest() + func (c *Collector) RecordResponseTime(d time.Duration) + func (c *Collector) RecordRetry() + func (c *Collector) RecordStatusCode(code int) + func (c *Collector) RecordWebSocket() + func (c *Collector) Reset() + func (c *Collector) SetActiveWorkers(n int64) + func (c *Collector) SetBrowserPoolStats(size, inUse int64) + func (c *Collector) SetQueueDepth(depth int64) + func (c *Collector) Snapshot() *Snapshot + type Snapshot struct + APIEndpoints int64 + ActiveWorkers int64 + AverageResponseTime time.Duration + BrowserPoolInUse int64 + BrowserPoolSize int64 + BytesTotal int64 + ErrorCounts map[string]int64 + ErrorsPerSecond float64 + ErrorsTotal int64 + FormsFound int64 + PagesCrawled int64 + PagesDiscovered int64 + QueueDepth int64 + RequestsPerSecond float64 + RequestsTotal int64 + ResponseTimeHist []int64 + RetriesTotal int64 + StatusCodes map[int]int64 + Timestamp time.Time + Uptime time.Duration + WebSockets int64 + func (s *Snapshot) BrowserPoolUtilization() float64 + func (s *Snapshot) ErrorRate() float64 + func (s *Snapshot) Summary() map[string]interface{}