Skip to content

feat: add Sentry error monitoring to API - #88

Merged
haramj merged 1 commit into
mainfrom
feat/sentry-error-monitoring
Sep 28, 2026
Merged

haramj merged 1 commit into
mainfrom
feat/sentry-error-monitoring

Conversation

@jisung-02

Copy link
Copy Markdown
Contributor

Summary

  • Add Sentry error monitoring to the API for recovered panics and HTTP 5xx responses.
  • Exclude request bodies, headers, cookies, query parameters, and automatic user data from events.
  • Pass optional Sentry DSN, environment, and release through the production deploy workflow.

Test plan

  • go test ./...
  • go build -o /tmp/rcp-sentry-server ./cmd/api/main.go
  • git diff --check

Deployment note

Add the SENTRY_DSN GitHub Actions secret to enable reporting after merge. Without it, reporting stays disabled.

Capture API panics and 5xx responses with route-level grouping. Keep request data out of events and pass the optional Sentry configuration through deployment.

@haramj haramj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@haramj
haramj merged commit f4e784e into main Sep 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants