feat: add Sentry tunnel and route error tracking through s.archgate.dev#266
Merged
Conversation
Add a lightweight Sentry envelope tunnel server (services/sentry-tunnel/) that receives envelopes from the CLI and forwards them to Sentry's ingest endpoint. This mirrors the PostHog managed proxy at n.archgate.dev — routing through our own domain improves reliability behind corporate proxies and ad-blockers. Tunnel server: - Bun HTTP server with envelope header parsing and DSN extraction - Project ID allowlist via ALLOWED_PROJECT_IDS env var - Health check at /health, accepts POST at / and /tunnel - Dockerfile for Railway deployment CLI change: - Add tunnel: "https://s.archgate.dev/tunnel" to Sentry.init() so the SDK sends envelopes to our tunnel instead of directly to ingest.de.sentry.io Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Deploying archgate-cli with
|
| Latest commit: |
519e1bc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://935678c6.archgate-cli.pages.dev |
| Branch Preview URL: | https://feat-sentry-tunnel.archgate-cli.pages.dev |
Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
s.archgate.dev/tunnelinstead ofingest.de.sentry.iodirectly — mirrors the PostHog proxy atn.archgate.devarchgate/servicesrepo and is deployed on RailwayTest plan
bun run validatepasses (lint, typecheck, format, 690 tests, 23/23 ADR rules, build)archgate/servicesrepos.archgate.dev/health