Files
supabase/packages/shared-data
Steven EubankandClaude Sonnet 4.6 9290edd4ff docs(observability): SQL query examples for request correlation and user activity (#50748)
Adds SQL query conventions and examples to the logs querying guide.

**`advanced-log-filtering.mdx`**
- New section: correlating requests by `request_id` (from
`sb-request-id` header) and `trace_id` (from W3C `traceparent`).
Includes a note on cache hits — if `cf_cache_status` is `HIT`, no
downstream logs exist for that request.
- New section: following a user's activity across services via
`auth_logs` + `request_id` fan-out, and investigating Edge Function
invocations using `execution_id` to join `function_edge_logs` and
`function_logs`.

**`log-field-reference.mdx`**
- `traceparent` added to the captured request headers list.
- Capture limits note: `request_id`, `trace_id`, and `span_id` may
appear on any source but are not populated on every event.

## Review

Pages to check in preview:
- `/docs/guides/observability/advanced-log-filtering`
- `/docs/guides/observability/log-field-reference`

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which references
[WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md)
and the docs
[CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md)
guide

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-12 17:40:13 +00:00
..
2023-10-13 14:07:36 -07:00
2026-08-03 21:14:50 +07:00