Versions in this module Expand all Collapse all v0 v0.1.1 Oct 6, 2026 v0.1.0 Oct 5, 2026 Changes in this version + const BlockedBody + const Version + func CaptureError(ctx context.Context, err error, tags map[string]string) + func CaptureMessage(ctx context.Context, message string) + func Close(timeout time.Duration) + func Flush(timeout time.Duration) bool + func Middleware(next http.Handler) http.Handler + func NormalizePath(path string) string + func Recover(ctx context.Context) + func SetFramework(name string) + func SetUser(ctx context.Context, userID string) + func TemplateRoute(route string) string + func Transport(base http.RoundTripper) http.RoundTripper + func WithUser(ctx context.Context, userID string) context.Context + type Client struct + func Init(o Options) *Client + func (c *Client) Close(timeout time.Duration) + func (c *Client) Flush(timeout time.Duration) bool + func (c *Client) Ready(timeout time.Duration) bool + type Event map[string]any + type Options struct + APIKey string + APITrustResolver func(r *http.Request) string + BeforeSend func(Event) Event + Debug bool + DisableOutgoing bool + DisableRequests bool + DisableUserID bool + Disabled bool + Endpoint string + Environment string + FlushInterval time.Duration + IgnoreErrors []string + IgnoreRoutes []string + MaxQueueEvents int + Release string + SampleRates map[string]float64 + TrustProxy *bool + type Recorder struct + Method string + RequestID string + func StartRequest(r *http.Request) (*Recorder, context.Context) + func (rec *Recorder) Error(ctx context.Context, err error, route, mechanism string) + func (rec *Recorder) Finish(route string, status int, reqBytes, resBytes int64) + func (rec *Recorder) Panic(ctx context.Context, p any, route, mechanism string) + func (rec *Recorder) Trust(r *http.Request) (blocked bool)