Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + func RequestID(ctx context.Context) string + type Config struct + Client *http.Client + HeaderName string + IngestURL string + NewID func() string + OnError func(error) + Sample func(r *http.Request, status int) bool + SecretKey string + Source string + Store Store + TTL time.Duration + type Reporter struct + func New(cfg Config) *Reporter + func (r *Reporter) Buffer(id, message string, detail map[string]any) + func (r *Reporter) Flush(w http.ResponseWriter, req *http.Request) + func (r *Reporter) FlushID(id string) bool + func (r *Reporter) Middleware(h http.Handler) http.Handler + type Store interface + Put func(id string, payload []byte, ttl time.Duration) + Take func(id string) ([]byte, bool)