Bypassing Vercel's 1-Day Log Retention Limit with OpenTelemetry
When a customer reports a bug from Friday on Monday morning, Vercel Pro's default 1-day runtime log window has already erased the evidence.
1h / 1d
Vercel Hobby / Pro default log retention
$0.50/GB
Vercel Log Drains egress surcharge
$20/mo
Libra Logs direct OTLP (up to 25 GB)
Key takeaway
Instead of paying Vercel Observability Plus event fees or $0.50/GB Log Drain transfer surcharges, export structured OTLP logs directly from instrumentation.node.ts to Libra Logs ($20/mo for up to 25 GB).
Vercel native retention vs. Log Drains vs. direct OTLP
Vercel gives you three ways to read Next.js production logs, and two of them add unexpected limits or egress bills.
| Option | Retention | Vercel surcharge | Customer grouping & MCP |
|---|---|---|---|
| Vercel Dashboard (Hobby / Pro) | 1 hour / 1 day | Included in Vercel plan | No |
| Vercel Log Drains | Vendor dependent | $0.50/GB drained + Pro required | Depends on destination |
| Direct OTLP to Libra Logs | 30-day searchable window | $0 Vercel drain fee (standard HTTPS) | Yes, automatic + Claude Code MCP |
Why direct OTLP beats platform log drains for Next.js
Platform stdout drains capture raw text lines and cold-start noise, splitting JSON objects that exceed line-length limits.
Direct OTLP export from Node's LoggerProvider sends clean, typed attributes (tenant_id, user_id, route, trace_id) on every Vercel plan, including Hobby and Pro, with zero $0.50/GB Vercel drain fee.
One command to wire your Vercel project
Run npx libra-logs in your Next.js repo, add LIBRA_LOGS_INGEST_KEY to Vercel Environment Variables, and redeploy. Monday morning customer reports now resolve in seconds.
Simple pricing · 30-day free trial
Stop paying per indexed log event. Group bugs by customer instead.
$20/mo
1-2 employees · up to 25 GB
$150/mo
3-9 employees · up to 100 GB + Slack alerts
10+ staff
We beat your Datadog/Sentry bill