Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + type EndpointStat struct + AvgMS float64 + Count int + Path string + type ErrorEvent struct + Context map[string]any + Fingerprint string + Message string + Time time.Time + type HealthResult struct + Checks map[string]string + Status string + type Issue struct + Count int + Fingerprint string + FirstSeen time.Time + LastSeen time.Time + Level string + Title string + type LogRecord struct + Attrs map[string]any + Level string + Message string + Time time.Time + type Metrics struct + ErrorRate float64 + P50MS float64 + P95MS float64 + Requests int + Slowest []EndpointStat + type RequestRecord struct + DurationMS float64 + ID string + IP string + Method string + Path string + Status int + Time time.Time + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) CaptureError(_ context.Context, err error, ctxData map[string]any) + func (s *Service) Events(fingerprint string) []ErrorEvent + func (s *Service) Health(ctx context.Context) HealthResult + func (s *Service) Issues() []Issue + func (s *Service) Logs(level string) []LogRecord + func (s *Service) Metrics() Metrics + func (s *Service) Middleware(next http.Handler) http.Handler + func (s *Service) Recover(next http.Handler) http.Handler + func (s *Service) RegisterCheck(name string, fn func(ctx context.Context) error) + func (s *Service) Requests() []RequestRecord + func (s *Service) SlogHandler(level slog.Level) slog.Handler