Skip to content

feat(telemetry): Add Sentry production monitoring and webhook alerts - #13

Merged
EKF0 merged 1 commit into
mainfrom
feat/p0-08-production-monitoring
May 25, 2026
Merged

feat(telemetry): Add Sentry production monitoring and webhook alerts#13
EKF0 merged 1 commit into
mainfrom
feat/p0-08-production-monitoring

Conversation

@EKF0

@EKF0 EKF0 commented May 25, 2026

Copy link
Copy Markdown
Owner

This PR implements P0-08: Add Production Monitoring & Alerts:

  1. Sentry Next.js Integration: Configured client, server, and edge configs and integrated Sentry inside lib/telemetry.ts and next.config.ts.
  2. Threshold Alerting & Spikes:
    • Bags API error rates sliding window (>= 3 errors / 429 or 5xx within 10 requests) triggers webhook alert with cooldown.
    • Immediate webhook alert on failed Solana pre-flight transaction simulations.
    • RPC latency warning alerts if confirmations exceed the limit (default 10,000ms).
  3. Secure Webhook Routing: Secures webhook triggers from client-side bundles by creating a secure POST proxy route /api/telemetry/alert.
  4. Environment Enhancements: Added validation rules and docs in lib/env.js and .env.example.
  5. Testing: 100% covered with a new 7-test Vitest suite in test/telemetry.test.ts (all passing).

@vercel

vercel Bot commented May 25, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (*/5 * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

@EKF0
EKF0 merged commit 63fe4bb into main May 25, 2026
1 of 3 checks passed
@supabase

supabase Bot commented May 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zgqlbqmebjnsaxraqwmt because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant