digidem / digidem/comapeo-cloud-app
ops(observability): configure and verify Sentry in staging and production
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 29
Description
Status
The Sentry client/code integration already exists. This issue tracks operational configuration and verification, not a normal product implementation PR.
Current repository state already includes:
- Sentry client initialization and error boundary/capture helpers
- source-map upload script using
sentry-cli - CI upload steps for staging and production
- graceful no-op/skip behavior when Sentry configuration is intentionally absent
As of this audit, gh variable list shows no repository variables and gh secret list does not include SENTRY_AUTH_TOKEN, SENTRY_ORG, or SENTRY_PROJECT, so this issue remains open.
Rollout
- Create/confirm the Sentry organization and
comapeo-cloud-appproject. - Configure repository/environment settings expected by the existing workflows:
- repository variable
VITE_SENTRY_DSN - secret
SENTRY_AUTH_TOKEN - secret
SENTRY_ORG - secret
SENTRY_PROJECT
- repository variable
- Verify the staging deployment first.
- Verify staging source-map upload succeeds.
- Send a controlled staging/test error and confirm the event is received with a correctly symbolicated stack trace.
- Only after staging verification, enable/verify the production path.
- Verify production source-map upload succeeds.
- Confirm at least one normal production event is observed when production naturally emits an event; do not intentionally crash production solely to satisfy this issue.
- Update the deployment runbook with verification and rollback/disable steps.
Acceptance criteria
- Sentry organization/project created and project DSN obtained
-
VITE_SENTRY_DSNconfigured in the intended GitHub repository/environment variable scope -
SENTRY_AUTH_TOKENconfigured in the intended secret scope with only the permissions required for source-map/release upload -
SENTRY_ORGconfigured -
SENTRY_PROJECTconfigured - Staging deploy completes with Sentry enabled
- Staging source-map upload succeeds
- A controlled staging/test error is received by Sentry
- The staging test event stack trace is correctly symbolicated to application source
- Production is enabled/verified only after staging validation
- Production source-map upload succeeds
- At least one normal production event is observed and symbolicated
- Absence of Sentry credentials/configuration does not break preview or other unprivileged CI paths that are intentionally allowed to run without Sentry
- Deployment runbook documents how to verify Sentry health and how to disable/roll back the integration safely
Guardrail
Do not intentionally crash production solely to produce an acceptance-test event. Use staging/test for controlled error injection and normal production traffic for production verification.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing Sentry client initialization, source-map upload script, and staging/production CI steps described in the issue. Configure the listed repository variables and secrets, verify staging before production, confirm symbolicated events and credential-free paths, then update the deployment runbook with safe verification and rollback steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, devops, documentation, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100