github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/content/api/stats.md (about) 1 --- 2 --- 3 4 ```go 5 type Reporter interface { 6 Report(from []Instance) 7 Stop() 8 } 9 10 type ReporterFactory interface { 11 Make(name string, opts map[string]string) (Reporter, error) 12 } 13 ``` 14 15 Implement and register by calling `stats.Register(name string, f ReporterFactory) error`.