What’s logged
Filtering
Filter logs by:- Date range — last hour, 24h, 7d, or custom
- Status — success or error
- Model — filter to a specific provider/model
- Org — filter by organisation (admin only)
- End user — filter by the
endUserIdheader value - Metadata — filter by tags on the request’s
metadatafield. Each condition picks a key and an operator (equals,contains,exists,doesn't exist,is empty,is not empty); add multiple conditions with Add condition — they are combined with AND. Example:environment+equals+production, plusfeature+contains+summar - Search — full-text search across request bodies and responses
Streaming view
The logs page supports a live streaming view — new requests appear as they’re logged, useful for debugging during development.Cost tracking
The gateway estimates cost using the model catalog’s pricing data. This is an estimate, not billing-grade — use your provider’s dashboard for exact numbers. Cost is calculated as:Request body inspection
Click any log entry to see the full request and response payloads. This is useful for:- Debugging prompt variable interpolation
- Inspecting structured output results
- Verifying fallback chain behaviour
- Checking what the gateway sent to the upstream provider
Metadata
Requests that include ametadata field (see chat completions) show their tags as key=value chips on the log row, with the full set in the expanded detail.
The metadata filter matches one or more tags. Use Add condition to chain multiple tag filters — all conditions must match (AND). Each condition has an operator:
Notes:
containstreats%and_as wildcards (SQLILIKEsemantics)- Keys with special characters (dots, quotes, spaces) can only be used with
equals— the other operators address keys as a single path segment - Conditions that are only partially filled in (e.g.
equalswithout a value) are ignored until completed
Fallback trail
When a request had a fallback chain, the expanded log entry shows the fallback trail: every model attempted, its outcome (success / failed / skipped), the error class and HTTP status, and latency. This makes it easy to see exactly why the primary failed and which model eventually answered.Retention
Logs are stored in Supabase. Retention depends on your Supabase plan and database size. For high-volume deployments, consider archiving older logs to external storage.