Logs and traces
Server logs and traces from Vercel drains or any OpenTelemetry SDK, kept 14 days and linked to errors.
Clearlook takes your server's log lines and traces, keeps them 14 days, and links them to errors by trace. The Logs page searches them; an error's page shows the same request's spans and lines; investigations name a path whose server errors rose; and the search_logs tool gives them to your AI app.
Lines and spans count toward the monthly event limit. The visitor's IP address and user agent are never kept, and card numbers and secrets in messages are masked before they're stored.
From Vercel
In the Clearlook integration on Vercel, tick Send server logs and Send traces. Clearlook creates the drains for you, signed with a secret only it and Vercel know. Vercel bills drains to your team; the script, errors and releases cost nothing.
To add a drain yourself: Team Settings › Drains › Add, with:
| Logs | Traces | |
|---|---|---|
| Endpoint | https://app.clearlook.dev/v1/logs |
https://app.clearlook.dev/v1/traces |
| Format | JSON or NDJSON | OTLP (JSON or Protobuf) |
| Header | Authorization: Bearer pk_live_… |
Authorization: Bearer pk_live_… |
pk_live_… is the project's write key, from Settings › Connect your site.
From OpenTelemetry
Point the OTLP/HTTP exporter at Clearlook. The exporter adds /v1/logs and /v1/traces itself.
OTEL_EXPORTER_OTLP_ENDPOINT=https://app.clearlook.dev
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer pk_live_…"
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
JSON (http/json) works too; gRPC doesn't. Set service.name on the resource so lines say where they came from.
What's kept
| Logs | Traces |
|---|---|
| Time, level, message, method, path, status, host, request id, trace id, deployment, environment, service, and a few attributes | Trace id, span id, parent, name, kind, start, duration, status, path, service |
Up to 5,000 lines or spans a request, 8 KB a message.