Documentation
¶
Overview ¶
Package errrep wires the Sentry-protocol-compatible error reporter. When DSN is empty, every entry point becomes a no-op so callers don't need to branch. The wire format works against either Sentry SaaS or a self-hosted GlitchTip instance (the lean per S03 sprint spec).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureException ¶
func CaptureException(err error)
CaptureException reports an error. Safe to call when the SDK is not configured (it's a no-op).
func CapturePanic ¶
CapturePanic reports a recovered panic value. requestID is used to correlate with logs and traces.
Types ¶
type SlogHandler ¶
SlogHandler wraps an underlying slog.Handler so that records at error level are also reported to Sentry. Other levels pass through unchanged.
Click to show internal directories.
Click to hide internal directories.