Wire the getsentry/sentry-go SDK with an env-gated DSN. sentry.Init
in cmd/root.go (or servers/server.go), defer sentry.Flush(2 * time.Second)
on shutdown.
Wrap both the gRPC server and the HTTP gateway with Sentry interceptors
so panics and returned errors get captured with full request context.
Production-only via absence of SENTRY_DSN — no DSN, no Sentry init, no
capture. Local and dev environments don't need to opt out explicitly.
Pairs with similar work in adjacent 7Cav tools; whichever lands first
sets the pattern (config key naming, scope tags, sample rate, etc.) for
the others to mirror.
Wire the
getsentry/sentry-goSDK with an env-gated DSN.sentry.Initin
cmd/root.go(orservers/server.go),defer sentry.Flush(2 * time.Second)on shutdown.
Wrap both the gRPC server and the HTTP gateway with Sentry interceptors
so panics and returned errors get captured with full request context.
Production-only via absence of
SENTRY_DSN— no DSN, no Sentry init, nocapture. Local and dev environments don't need to opt out explicitly.
Pairs with similar work in adjacent 7Cav tools; whichever lands first
sets the pattern (config key naming, scope tags, sample rate, etc.) for
the others to mirror.