Serverless and Edge Function Error Digest

Every morning, the agent reads Vercel Log Drains for function errors from the last 24 hours, groups by error signature, and reports the top offenders with sample stack traces.

Cron + WhatsApp Groupfunctionserrorslog-drains

Conversation example

Cron triggered: Vercel function error digest (9:00 AM)
http_request → Log Drain + aggregate

Reading Log Drain for the last 24h on lunogen-web, filtering level=error...

whatsapp_web_send

Function Error Digest — last 24h Total errors: 284 across 3 signatures 1. [182 errors] api/checkout.ts TypeError: Cannot read property 'price' of null First seen: Apr 11 23:14 (after v2.11.0 deploy) Impact: 0.3% of checkout attempts Action: guard against null lineItems in proration path 2. [78 errors] edge/geolocate.ts Error: Country code 'XK' not in mapping First seen: stable background noise Action: add Kosovo to the country mapping 3. [24 errors] api/webhook.ts Error: Invalid signature First seen: stable — likely bots Action: none (expected) Posted to #eng-oncall. Signature 1 needs attention — tagging @rivka-d.

More Vercel use cases

Deploy this in minutes

Create a LunoGen agent, connect Vercel, and start running this workflow from WhatsApp today.

Back to Vercel