Observability
Last updated: 2026-11-27T06:40:15-03:00 (UTC-3)
When something goes wrong, the question is always the same: what happened to this call? The gateway records every request with its request_id and W3C trace, shows aggregate usage, and warns you when a limit is getting close. Prompts and responses never go to logs or telemetry.
What exists
Section titled “What exists”| Feature | What it does | Flag | Learn more |
|---|---|---|---|
| Request logs | Every call with key, team, model, provider, status, tokens, latency, and cost; filters, columns, live tail, and CSV | request_logs, request_log_live_tail, request_journey, agent_sessions |
Observability |
| Analytics | Usage, performance, consumers, and cost by period, with comparison and drill-down to the logs | usage_analytics |
Analytics |
| Analytics store | Optional copy of the usage events (ClickHouse engine, analytics_store block) that answers usage analytics and request log pages on large deployments; PostgreSQL stays the source of truth and answers whenever the copy is off, behind or unreachable |
analytics_store_usage, analytics_store_request_logs (clickhouse_analytics, clickhouse_request_logs until 0.0.1-rc.2) |
Analytics store |
| Sessions and end users | Groups the calls of one conversation or of one end user of your app | session_tracking, end_user_tracking |
Observability |
| Attempts | Every retry and fallback of a request | request_attempts |
Observability |
| OTLP traces and logs | Spans and logs in the OpenTelemetry standard, including gen_ai.* |
otlp_logs, otlp_traces |
Observability |
| Request replay | An operator sends a captured request again as a new request of their own, with origin replay and a link both ways to the request it replays; refused with the reason when the content was not captured | request_replay |
Replay a request |
| Sessions | Traces → Sessions: the traces that share a session ID as one row each, with traces, duration, cost, tokens, end user, agents, failed evaluations and one column per session evaluator; a session opens with its results, child sessions and a transcript of one turn per trace; clients can end a session’s idle wait | session_explorer |
Sessions and end users |
| Agent usage | Observability → Agent usage: the agents that call models through the gateway with usage over time, last seen, versions, p95 latency, tokens, cost, spans and error rate, the most expensive and slowest, and a comparison of two versions (model, tools, instructions) | agent_insights |
Agent usage |
| End user pages | Traces → Users: the end users a client declared with sessions, traces, cost, tokens and failed evaluations, and a page per end user with its traces, sessions and evaluations; summed on read, so erasure removes them | end_user_pages |
Sessions and end users |
| Trace explorer | The Traces screen: traces and spans over one query bar with lenses, facets and a time range; each trace as a tree, a time-ruled waterfall and an agent graph, with its evaluations, feedback, the gateway’s own records and captured content by permission | trace_explorer |
Trace explorer |
| Query language and saved views | One query language for the Traces screen, the request log, evaluator rule filters and alert rules: AND, OR, NOT, groups, lists and ranges over one catalogue of fields with the gateway’s own facts (fallback, canary arm, cache, guardrail outcome, customer, prompt revision, evaluation results); a facet of any field; text search over captured content for content readers; saved views for a person, a team or an organization | trace_query |
Query language and saved views |
| Custom dashboards | Pages you build yourself: a time series as lines or bars, a single figure or a Markdown note over the usage metrics (evaluation metrics included) and over the query language of the Traces screen, with filters, a breakdown and a live preview; private, for a team or for an organization, every widget answered with the reader’s own permissions; every save is a version you can view and restore | custom_dashboards |
Custom dashboards |
| Agent runs | Coding-agent runs recognized from the requests alone, with nothing set up on the client: the agent’s name, the calls of one run under the client’s own run ID or a derived one, turns, the tool steps the client reports, subagent branches and compactions; the Agent runs screen lists runs and opens one as a thread. The typed task text is kept only under agent_recognition.task_capture, off by default |
agent_recognition |
Agent runs |
| Agent transcript ingest | POST /v1/traces accepts a coding agent’s own transcript as OTLP/HTTP JSON spans in the OpenTelemetry GenAI conventions, from a key with the scope traces:write, and files them under the run the traffic recognized; message content in the upload is discarded |
agent_transcript_ingest |
Transcript ingest |
| OTLP ingest of application spans | POST /v1/traces accepts an application’s own OpenTelemetry spans (protobuf or JSON, GenAI and OpenInference), so the application’s agent, tool and model spans and the gateway’s own form one trace; connectors keep the tree, instrumentation issues are recorded per span, message content only under the team’s app_spans capture purpose |
otlp_ingest |
Application spans over OTLP |
| Public trace API | Keys of a team read its traces, spans, evaluation results and evaluators, and keep evaluators as code from CI; client helpers in Python, TypeScript and Go | public_trace_api |
Public trace API |
| Structural items on spans | The shape of each conversation on its request span and OTLP span, without any text: message count and roles, tools declared and called by name, attachment counts, token split; for teams that capture no content | span_structural_items |
Content capture |
| OTLP metrics | The /metrics series pushed to an OTLP/HTTP receiver on an interval; off by default |
otlp_metrics |
OTLP metrics |
| Prometheus metrics | /metrics and a ready-made Grafana dashboard |
metrics_endpoint (prometheus_metrics until 0.0.1-rc.2) |
Observability |
| Model server metrics | The own Prometheus metrics of self-hosted model servers (vLLM, llama.cpp), scraped per connection and shown in /metrics and OTLP with a provider label; off by default |
provider_metrics_scrape |
Model server metrics |
| Provider request labels | The caller’s organization, team and key ID sent to Vertex AI as request labels, so the Google Cloud bill can be grouped like the gateway’s reports; values hashed for teams whose policy forbids plain identifiers; off by default | provider_request_labels |
Provider request labels |
| Log destinations | Metadata for every call in S3, GCS, Azure Blob, Langfuse, Datadog, or HTTP | log_destinations |
Observability |
| Request audit events | One versioned JSON line per finished inference request on stdout, metadata only, for an audit pipeline such as Vector | logging.request_events (setting) |
Request audit events |
| Alerts | Budget near its limit, guardrail blocks, and failures, sent to a webhook, Slack, Teams, email, or PagerDuty | alert_channels |
Alerts |
| Durable receipts | Every accepted request leaves a receipt before it goes to the provider; nothing is lost silently | durable_usage |
Durability |
| Usage in streams | Tokens are also measured in SSE responses | stream_usage |
Usage in streams |
| Retention | Deletes old metadata by age, with confirmation | metadata_retention |
Retention |
| m7 ai | Questions in plain language about traffic, cost, errors, configuration, audit and the docs, answered from the data you may see, with every step shown; also the structured usage query API (any group-by, hourly buckets, cost) | ask_ai |
m7 ai |
| m7 ai actions | m7 ai proposes key, team, budget and team-membership changes; each is shown with its current and new values and runs once, as you, only after you confirm it | ask_ai_actions |
Administrative actions |