Repository navigation
docs(telemetry): make the Logs Explorer docs ClickHouse-focused - #47914
Conversation
…gs Explorer Split the Logs Explorer querying section into a ClickHouse (default) and BigQuery (legacy) subsection so both engines are documented clearly, instead of a BigQuery-only walkthrough with a caution note.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughThe telemetry documentation now describes ClickHouse-based Logs Explorer queries, unified log storage, ChangesLogs Explorer documentation
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
…Query SQL Remove the legacy BigQuery query section (unnest/datetime examples) and the two-engine framing. The page now documents the ClickHouse logs table and log_attributes only, with a short note that BigQuery is deprecated.
…tributes Apply the same transform the dashboard uses (Logs.fieldReference.ts): keep the base columns (id, timestamp, event_message, severity_text, source) and rewrite each metadata.x path to log_attributes['x'], derived from the shared logConstants.
jeremenichelli
left a comment
There was a problem hiding this comment.
Left some minor comments.
… styling Per review: use the recommended wording for the engine note, and let the field reference table use default styles instead of per-cell classNames.
Convert the advanced log querying guide to the ClickHouse logs model: single logs table filtered by source, log_attributes bracket access instead of cross join unnest, match() instead of regexp_contains, timestamp used directly, and count()/no select *. Drop BigQuery-only limitations that no longer apply.
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/docs/content/guides/telemetry/advanced-log-filtering.mdx`:
- Around line 82-84: Update the “Include a filter over the timestamp” guidance
in the advanced log filtering documentation to tell users to narrow the
Explorer’s selected time range, which is applied automatically, rather than
requiring an explicit SQL timestamp filter. Remove the contradictory instruction
while preserving the warning about scanning large retention ranges.
- Around line 237-244: Update the `or statements` example so the `match` pattern
groups the alternatives with `started`, ensuring it matches “started” followed
by either “host” or “authenticated” rather than allowing “authenticated” to
match independently.
- Around line 197-213: Correct the regex explanations in the Wildcards and
Alphanumeric ranges sections: describe `.` as matching one character, use `.*`
for arbitrary text in the example, and state that `[1-9a-zA-Z]` matches one
character while documenting `^[0-9a-zA-Z]+$` for whole-value alphanumeric
matching.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 75dde120-955a-4d0f-9865-3a0b320e0984
📒 Files selected for processing (1)
apps/docs/content/guides/telemetry/advanced-log-filtering.mdx
…ling Address review: reword best practice to narrow the time range (the Explorer applies it), correct the wildcard and alphanumeric-range regex explanations, group the or-statement alternatives, and allow 'substring' in the dictionary.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/docs/content/guides/telemetry/advanced-log-filtering.mdx (1)
197-204: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winNote ClickHouse's
.also matches line breaks (unlike typical RE2 default).ClickHouse's
match()deviates from vanilla RE2 here: Unlike re2's default behavior, . matches line breaks. To disable this, prepend the pattern with (?-s). Sinceevent_messagecan contain multi-line content (e.g., stack traces), a pattern likehello.*worldcan unexpectedly span across log lines. Worth a one-line callout so users aren't surprised by cross-line matches.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/docs/content/guides/telemetry/advanced-log-filtering.mdx` around lines 197 - 204, Update the “Wildcards” section near the match(event_message) example to note that ClickHouse’s match() treats “.” as matching line breaks by default, unlike standard RE2 behavior. Mention that users can prepend patterns with (?-s) to disable this, especially for multiline event_message values.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@apps/docs/content/guides/telemetry/advanced-log-filtering.mdx`:
- Around line 197-204: Update the “Wildcards” section near the
match(event_message) example to note that ClickHouse’s match() treats “.” as
matching line breaks by default, unlike standard RE2 behavior. Mention that
users can prepend patterns with (?-s) to disable this, especially for multiline
event_message values.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b6d82999-b053-48ef-92a8-4866b812c6b7
📒 Files selected for processing (3)
apps/docs/content/guides/telemetry/advanced-log-filtering.mdxapps/docs/content/guides/telemetry/logs.mdxsupa-mdx-lint/Rule003Spelling.toml
🚧 Files skipped from review as they are similar to previous changes (2)
- supa-mdx-lint/Rule003Spelling.toml
- apps/docs/content/guides/telemetry/logs.mdx
Braintrust eval report
|
Makes the Logs Explorer query docs ClickHouse-focused.
The Logs Explorer runs on ClickHouse (default since June 2026): a single
logstable tagged bysource, with nested fields in alog_attributesmap. This rewrites## Querying with the Logs Explorerto document only that model:log_attributes['...']access,toInt32OrZero,count()), with example queries and the "don't guess keys" guidancecross join unnest(metadata)section (timestamp/unnesting/examples) is removed; a short note flags that BigQuery is deprecatedNo dead anchors: the only repo reference to an
#unnesting-arraysanchor points atadvanced-log-filtering, which is untouched.Supersedes the earlier two-engine version on this branch. Skill side (agent-skills#112) already points here as the single source for log querying.
Summary by CodeRabbit
logstable and accessing structured fields.