chore(relay): drop Sentry from the deprecated v1 relay

Merged
SA
3mo ago
+9-77

Summary

The v1 relay's Sentry project + DSN have been handed to relay2 (its SENTRY_DSN secret is set; #6394 wired the capture). The v1 relay is in lame-duck until Fly retirement, so this strips @sentry/node, sentry.ts, initSentry, and all capture call sites — every former capture site keeps (or gains) a console.error so Fly logs retain the signal, including the previously-silent directory.lookup/sweepStale catches and Hono's onError.

Deliberately not deploying the Fly app for this — a fleet restart drops every customer tunnel and isn't worth it for a telemetry removal. It rides along with whatever v1 deploy happens next (if any before retirement); events from both relays land in the same Sentry project until then, distinguishable by SDK/runtime.

Test plan

  • typecheck clean in apps/relay; lint clean
  • no sentry references remain in apps/relay
  • relay2 end already verified live under #6394

Summary by cubic

Removes Sentry from the deprecated v1 relay and replaces all error captures with logging. This keeps error signal in Fly logs while the Sentry project and DSN now belong to relay2.

  • Delete @sentry/node, sentry.ts, initSentry, and all captureSentry* calls; remove RELAY_SENTRY_DSN from env.ts.
  • Log errors with console.error at former silent sites: Hono onError, directory.lookup catches, directory.sweepStale, and proxy failures.
  • No customer-visible behavior change; only telemetry is removed. TunnelLifecycleError remains typed to avoid burying real errors.
  • Rollout: do not redeploy v1 solely for this; it rides with the next v1 deploy. Until then, both relays report to the same Sentry project, with relay2 as the long-term source.

Summary by CodeRabbit

  • Bug Fixes

    • Relay failures are now reported directly in error logs, including proxy, directory lookup, and probe failures.
    • Improved error-handling documentation for tunnel operations.
  • Chores

    • Removed external error-monitoring integration and its configuration.
    • Relay error detection and logging behavior remains available without third-party reporting.