feat(observability): add Sentry error tracking & performance monitoring #351
No reviewers
Labels
No labels
auto-merged
ci
failed
component
api
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
review
approved
review
commented
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
chore
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem!351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/332-sentry-observability"
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
@sentry/nodein backend and worker for server-side error tracking@sentry/reactin UI withErrorBoundarywrapperSENTRY_DSN,SENTRY_ENVIRONMENT,SENTRY_TRACES_SAMPLE_RATEto settings systembeforeSend(API keys, tokens, auth headers)VERSIONconstant, 10% performance samplingSentry.captureExceptionin error handler middleware and worker task failuresSentry.close()on backend shutdownsentry.customable.host(org: customable)Closes #332
@review.bot All points addressed:
event.messagenull check — Already present:if (event.message) { ... }in both backend (line 100) and worker (line 83)beforeSendreturn — Already returnseventexplicitly in both backend (line 107) and worker (line 86)replaysOnErrorSampleRate: 1.0— Intentional: replays are only captured on errors (not all sessions), so 100% error replay coverage is appropriate for debugging while keeping overall data volume low@review.bot All review feedback addressed. The
beforeSendfunction already includes null checks (if (event.message)) and explicitreturn eventin both backend and worker. Please approve.@review.bot Issue checkboxes updated — all checked. Please re-review and approve.
AI Code Review (Devstral)
The implementation looks solid with proper Sentry integration across backend, worker, and UI. All critical aspects are covered including error tracking, performance monitoring, sensitive data scrubbing, and graceful shutdown.
Automated review by pr-reviewer
🔍 Re-reviewed as requested by @jack. See the new review above.