Request observability
Track end users, sessions, environments, tags, metadata, and redaction without storing prompts.
outerlane request logs never store prompt or response bodies. You can still group and debug usage by attaching short identifiers to each request.
Attach request context
Use the outerlane object or x-outerlane-* headers. The object takes precedence.
{
"model": "anthropic/claude-sonnet-5-5",
"messages": [{ "role": "user", "content": "Hello" }],
"outerlane": {
"user": "customer_123",
"session": "chat_abc",
"environment": "production",
"tags": ["support", "eu"],
"metadata": { "plan": "enterprise", "experiment": "a" }
}
}| Field | Limits | Dashboard use |
|---|---|---|
user | Up to 120 printable characters | Group cost and errors by end user |
session | Up to 120 printable characters | Group requests in one conversation or trace |
environment | Up to 40 characters | Separate production, staging, and development |
tags | Up to 8 tags, 40 characters each | Group feature or workload usage |
metadata | Up to 20 scalar keys, 2 KB serialized | Store small request facts |
The header equivalents are x-outerlane-user, x-outerlane-session, x-outerlane-environment, and x-outerlane-tags (comma-separated). OpenAI user and Anthropic metadata.user_id are also recognized as end-user identifiers.
Analyze and export
Usage groups requests by model, API key, end user, session, environment, or tag. Request logs show route attempts, cache hits, redaction, context, cost, latency, and status for each request. Export filtered summaries or request rows as CSV directly from the dashboard.
Redact sensitive values
Set outerlane.redact or x-outerlane-redact: true to rewrite common secret and email patterns before the request leaves outerlane.
{
"model": "anthropic/claude-sonnet-5-5",
"messages": [{ "role": "user", "content": "Email me at person@example.com" }],
"outerlane": { "redact": true }
}Redaction covers outerlane/OpenAI-style keys, bearer tokens, api_key/token/secret assignments, and email addresses. It is a safety net, not a substitute for keeping secrets out of prompts. Requests that were redacted are marked in request details.