Correlated Logs #53230
Correlated Logs
#53230
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Connect logs by request, trace, or user in Studio. CLI v3 adds a terminal log explorer, filters, JSON exports, and SQL queries.
Correlated Logs is now available in Beta. The Studio Logs tab now lets you connect log events using three meaningful identifiers:
requestId,traceId, anduserId.What's new
Every log item now has four tabs: a structured Overview, Raw JSON, and two contextual tabs that appear when relevant:
requestIdis present, fetches all log items for that request and shows them as a timeline. You can select any item in the chain to see its details and navigate back to the full list.You can also filter the logs list by user attributes to see all log items for a specific user, in the same way you filter by
requestIdortraceId.For AI agents using the Supabase MCP server, the
query_logstool supports the same identifiers. See MCP debugging.How to use it
Open the Logs tab in your project dashboard and filter by
requestId,traceId, or user attributes. Click into any log item to see the Timeline or User tab where available.To send a
traceIdfrom your application, see client-side tracing.Logs in CLI v3
Inspect hosted logs in your terminal:
Filter by service, severity, or time range. Use
--fromand--tofor fixed UTC bounds.In an interactive terminal, use the up and down arrows to select a row, Enter to inspect it,
Cto copy the full record as JSON, andLto load newer logs on demand.For scripts and agents,
--output-format jsonand--output-format stream-jsonread once and exit. Query hosted logs with--sqlor load SQL with--file.The command defaults to local logs, which require the experimental stack runtime.
Read the CLI logs guide for setup and examples.
Why we built this
When something goes wrong, the signal is spread across log items from different services, and tracking it back to a specific request or user means cross-referencing timestamps by hand. These connections should be a click away.
This is a Beta release. Try it and share feedback in the GitHub Discussion below.
Affected products: Observability, Studio, Auth, CLI
All reactions