Skip to content

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.

Exla Engineering··5 min read

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.

Comparing Next.js on Vercel logging options
OptionRetentionVercel surchargeCustomer grouping & MCP
Vercel Dashboard (Hobby / Pro)1 hour / 1 dayIncluded in Vercel planNo
Vercel Log DrainsVendor dependent$0.50/GB drained + Pro requiredDepends on destination
Direct OTLP to Libra Logs30-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

Talk to sales

FAQ

Common engineering questions

Does direct OTLP work on Vercel Hobby as well as Vercel Pro?

Yes. Because OTLP exports over standard outbound HTTPS from your Next.js Node runtime, it does not require Vercel's Pro-only Log Drains feature.

What if a serverless function freezes right after returning a response?

Use Next.js after() (or @vercel/functions waitUntil) to flush pending telemetry batches without delaying the HTTP response.