Versions in this module Expand all Collapse all v1 v1.16.1 Oct 30, 2026 v1.16.0 Oct 29, 2026 v1.15.2 Oct 26, 2026 v1.15.1 Oct 23, 2026 v1.15.0 Oct 22, 2026 v1.14.0 Oct 19, 2026 v1.13.2 Oct 15, 2026 v1.13.1 Oct 11, 2026 v1.13.0 Oct 9, 2026 Changes in this version + const Version + var Sections = []string + func Shape(sql string) string + type AppInfo struct + Env string + Go string + Now time.Time + StartedAt time.Time + UptimeSec int64 + Version string + type Config struct + History int + Keep int + Path string + Sample time.Duration + SlowQuery time.Duration + SlowRequest time.Duration + Token string + TrafficDir string + type Count struct + Count int + Name string + type Day struct + Browsers map[string]int + Countries map[string]int + Date string + Devices map[string]int + Hours [24]int + Paths map[string]int + Referrers map[string]int + Seen []uint64 + Views int + Visitors int + type DayCount struct + Date string + Views int + Visitors int + type ErrorEntry struct + At time.Time + Kind string + Message string + Method string + Path string + Route string + Stack string + Status int + type Frame struct + File string + Func string + Line int + type GoroutineGroup struct + At Frame + Count int + Stack []Frame + type GoroutineReport struct + Groups []GoroutineGroup + Total int + type HeapReport struct + Sites []HeapSite + TotalInuseBytes int64 + type HeapSite struct + AllocBytes int64 + At Frame + InuseBytes int64 + InuseObjects int64 + Stack []Frame + type Insights struct + func Install(app *nimbus.App, cfg ...Config) *Insights + func New(cfg Config) *Insights + func (in *Insights) Close() + func (in *Insights) Collect(sections ...string) *Report + func (in *Insights) Handler() func(c *nhttp.Context) error + func (in *Insights) Middleware() router.Middleware + type Overview struct + ErrorRate float64 + Errors int + GCCPUFraction float64 + Goroutines int + HeapInuse uint64 + InFlight int + P50MS float64 + P95MS float64 + P99MS float64 + RequestsPerMin float64 + SlowQueries int + Sys uint64 + type PoolStat struct + Idle int + InUse int + MaxIdleClose int64 + MaxOpen int + Open int + WaitCount int64 + WaitMS float64 + type QueryReport struct + Driver string + Failed []SlowQuery + Pool *PoolStat + Slow []SlowQuery + SlowMS float64 + Top []QueryStat + Total int + type QueryStat struct + AvgMS float64 + Caller string + Count int + Errors int + LastAt time.Time + MaxMS float64 + Rows int64 + Shape string + TotalMS float64 + type Repeated struct + Caller string + LastAt time.Time + Route string + Seen int + Shape string + Times int + type Report struct + App AppInfo + Errors []ErrorEntry + Goroutines *GoroutineReport + Heap *HeapReport + Overview *Overview + Queries *QueryReport + Requests *RequestReport + Runtime *RuntimeReport + Traffic *TrafficReport + type RequestReport struct + Repeated []Repeated + Routes []RouteStat + Slow []SlowRequest + SlowMS float64 + Status map[string]int + Total int + type RouteStat struct + AvgMS float64 + Count int + Errors int + LastAt time.Time + MaxMS float64 + P95MS float64 + Queries float64 + QueryMS float64 + Route string + TotalMS float64 + type RuntimeReport struct + ContainerLimit uint64 + GOGC string + GOMAXPROCS int + History []Sample + MaxPauseNs uint64 + MemoryLimit int64 + Now Sample + NumCPU int + RecentPauses []uint64 + type Sample struct + AllocRate uint64 + At time.Time + Errors int + Frees uint64 + GCCPUFraction float64 + GCs uint32 + Goroutines int + HeapAlloc uint64 + HeapIdle uint64 + HeapInuse uint64 + HeapObjects uint64 + HeapReleased uint64 + HeapSys uint64 + Mallocs uint64 + NextGC uint64 + NumGC uint32 + P95MS float64 + PauseNs uint64 + PauseTotalNs uint64 + Requests int + StackInuse uint64 + Sys uint64 + TotalAlloc uint64 + type SlowQuery struct + At time.Time + Caller string + Error string + MS float64 + Rows int64 + SQL string + Shape string + type SlowRequest struct + At time.Time + MS float64 + Method string + Path string + Queries int + QueryMS float64 + Route string + Status int + type TrafficReport struct + Browsers []Count + Countries []Count + Days []DayCount + Devices []Count + Hours [24]int + Kept bool + Paths []Count + Referrers []Count + Today DayCount + Views int + Visitors int