Skip to content

Add Sentry error monitoring (env-gated DSN, gRPC + HTTP gateway interceptors) #96

@SyniRon

Description

@SyniRon

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.

Metadata

Metadata

Assignees

Labels

7cavfeatureNew feature or capabilityready-for-humanRequires human implementation (judgment, manual testing, design)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions