Add Sentry SDK integration for error tracking (GlitchTip-compatible) #109
Labels
No labels
auto-merge
bug
chore
dependency
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
hobbypunk/rails-base_app#109
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add opt-in error tracking to the base app via the official Sentry SDKs (
sentry-ruby+sentry-rails). The integration must be receiver-neutral: any Sentry-DSN-compatible backend works (self-hosted GlitchTip, Bugsink, or Sentry SaaS).Background / Decision
Tasks
App integration
sentry-ruby+sentry-railsgems (production + development groups)config/settings.yml: newsentry:section (dsn:(empty = disabled),environment:,traces_sample_rate:,profiles_sample_rate:)config/initializers/sentry.rb: only initialize when DSN is present;breadcrumbs_logger(ActiveSupport + http),send_default_pii: falseCurrent(onlyid+username, no email – privacy) viabefore_sendor controller callbackSETTINGS_SENTRY_DSNenv var passthrough (Kamal/Docker)GlitchTip deployment (TrueNAS)
Quality
.opencode-changes.md+ CHANGELOG if applicableAcceptance Criteria
SETTINGS_SENTRY_DSNset, exceptions (controller + jobs) are reported to the DSN targetNotes
feature/<issue>_sentry_integration