Skip to content

docs(telemetry): rename section and restructure as Monitoring and Debugging - #48243

Merged
smeubank merged 15 commits into
masterfrom
docs/telemetry-max
Jul 30, 2026
Merged

smeubank merged 15 commits into
masterfrom
docs/telemetry-max

Conversation

@smeubank

@smeubank smeubank commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Renames the Telemetry nav section to Monitoring and Debugging (nav label + sidebar title)
  • Rewrites the section overview (telemetry.mdx) as a clean navigation page using ContentListings — three panels (Debugging / Monitoring / AI & automation) with no how-to prose
  • Adds new telemetry.data.ts content-listings data file with three groups registered in index.ts
  • Adds a new Debugging guide (debugging.mdx) — request-stack model, symptom-to-layer router with troubleshooting links for every service, logging guidance
  • Adds cross-links between debugging.mdx, logs.mdx, and advanced-log-filtering.mdx
  • Adds a new AI agents and MCP page (ai-agents.mdx) — MCP tools table, get_logs usage, debugging skill workflow
  • Restructures sidebar into three groups: Debugging / Monitoring / AI & automation

Motivation

  • No central entry point existed for debugging — content was scattered across products with no index
  • The overview page had almost no links for agents to follow
  • The section name "Telemetry" caused confusion (also used for CLI usage telemetry)
  • Unblocks the supabase debugging skill, which routes agents to this section as its source of truth

Test plan

  • /docs/guides/telemetry — three ContentListings panels render, no prose how-to text
  • /docs/guides/telemetry.md (markdown) — clean link list, navigable by LLMs
  • /docs/guides/telemetry/debugging — renders correctly, symptom table links resolve
  • /docs/guides/telemetry/ai-agents — new page renders correctly
  • Sidebar shows 3 groups: Debugging / Monitoring / AI & automation
  • All cross-links between debugging, logs, and advanced-log-filtering resolve

Summary by CodeRabbit

Summary

  • New Features

    • Added new documentation coverage for AI agent–assisted monitoring and debugging, including an observability-driven troubleshooting workflow.
  • Documentation

    • Updated the “Telemetry” area to “Monitoring and Debugging” with a refreshed landing page and reorganized sections (Debugging, Monitoring, and AI).
    • Revised the debugging and logs guides to improve step-by-step guidance and highlight advanced log filtering.
  • Navigation

    • Renamed and restructured the top-level navigation entry to reflect the new Monitoring and Debugging content layout.

@smeubank
smeubank requested a review from a team as a code owner July 23, 2026 11:11
@vercel

vercel Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, v0 Jul 30, 2026 11:47am
zone-www-dot-com Ready Ready Preview, v0 Jul 30, 2026 11:47am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 30, 2026 11:47am
design-system Skipped Skipped Jul 30, 2026 11:47am
studio-self-hosted Skipped Skipped Jul 30, 2026 11:47am
studio-staging Skipped Skipped Jul 30, 2026 11:47am
ui-library Skipped Skipped Jul 30, 2026 11:47am

Request Review

@supabase

supabase Bot commented Jul 23, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 23, 2026
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The telemetry documentation is renamed to “Monitoring and Debugging,” reorganized into debugging, monitoring, and AI sections, and expanded with MCP-based AI-agent guidance. Navigation and content-listing registries expose the new structure.

Changes

Monitoring and debugging documentation

Layer / File(s) Summary
Content listing structure
apps/docs/data/content-listings/*, apps/docs/content/guides/telemetry.mdx
Adds debugging, monitoring, and AI content groups, registers them globally, and renders them on the renamed landing page.
AI-assisted debugging guides
apps/docs/content/guides/telemetry/ai-agents.mdx, apps/docs/content/guides/telemetry/debugging.mdx, apps/docs/content/guides/telemetry/logs.mdx
Documents MCP observability tools, bounded log queries, AI debugging workflows, and links between debugging and logging guidance.
Navigation hierarchy update
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
Renames the telemetry menu and reorganizes its entries into Debugging, Monitoring, and AI & automation sections.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AI Agent
  participant Supabase MCP
  participant Documentation
  AI Agent->>Supabase MCP: Query service logs with get_logs
  Supabase MCP-->>AI Agent: Return bounded log results
  AI Agent->>Documentation: Search symptom-specific troubleshooting guide
  Documentation-->>AI Agent: Return debugging workflow and fixes
Loading

Possibly related PRs

Suggested reviewers: jeremenichelli

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is useful, but it does not follow the required template sections and omits several requested fields. Add the template sections: CONTRIBUTING confirmation, change type, current behavior with issue links, new behavior, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: renaming the Telemetry section and restructuring it as Monitoring and Debugging.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/telemetry-max

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 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/ai-agents.mdx`:
- Around line 20-33: Update apps/docs/content/guides/telemetry/ai-agents.mdx
lines 20-33 and the referenced line 41 to use query_logs for hosted logs, scope
get_logs to local/self-hosted projects, and direct hosted raw-SQL needs through
query_logs rather than execute_sql. Update
apps/docs/content/guides/telemetry/debugging.mdx lines 9-14 and 85-96 to clearly
distinguish hosted query_logs usage from local/self-hosted get_logs usage.
🪄 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 Plus

Run ID: ce92f7b3-53b9-421e-acbf-2fd8ac0b4752

📥 Commits

Reviewing files that changed from the base of the PR and between 8108528 and 3c4bb4d.

📒 Files selected for processing (7)
  • apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
  • apps/docs/content/guides/telemetry.mdx
  • apps/docs/content/guides/telemetry/ai-agents.mdx
  • apps/docs/content/guides/telemetry/debugging.mdx
  • apps/docs/content/guides/telemetry/logs.mdx
  • apps/docs/data/content-listings/index.ts
  • apps/docs/data/content-listings/telemetry.data.ts

@jeremenichelli

Copy link
Copy Markdown
Contributor

@smeubank great work! Leaving some comments altogether in here so you can start addressing them as you prefer...

  • Given that now these pages are called "Monitoring & Debugging" we should probably rename the route and set a redirect. We can do this in a follow up PR and I can take care of that too, so you don't have to worry about it now, but worth mentioning.

  • On telemetry.mdx content listings are not showing like cards for some reason, I suggest using that view as it aligns with the recent "quick start guides" and entry pages we set up.

Telemetry page content listing in this PR

Screenshot 2026-07-23 at 16 25 32

Content listings in other pages

Screenshot 2026-07-23 at 16 26 42

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it me or this table is quite unreadable (specially for humans), might be worth re-thinking how we display these errors.

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it me or this table is quite unreadable

yes :D so the debugging page is rather a lot, and it is exactly how it was. We can do this clean up as part of this PR or break it off into a debugging page clean up

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, the goal of the PR is to improve all these pages, I think that's quite on point with the scope. If you feel it will be too much work, let's do it in a separate task as we don't tank this too much in time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have a specific idea in mind? you are also welcome to commit changes to the branch

4. Fetch the troubleshooting guide for the specific symptom (append `.md` to the docs URL, or use `search_docs`).
5. Apply the fix, then verify by re-running the failing operation.

The skill routes to the [symptom-to-layer table](/docs/guides/telemetry/debugging#find-the-guide-for-your-symptom) rather than embedding cause-and-fix content. This means the agent uses current documentation and the skill stays stable as the docs evolve.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add in the end a content listing or a further reading section with links to specific debugging guides to each product?

For example, this on Database product page.

Image

@blacksmith-sh

blacksmith-sh Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
[Features] › features/docs-pages.spec.ts:28:5 › Docs owned pages › /docs/guides/
monitoring-and-debugging/metrics/
grafana-self-hosted loads and docs-owned article links resolve
View Logs
Docs owned pages//docs/guides/monitoring-and-debugging/metrics/
grafana-self-hosted loads and docs-owned article links resolve
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

smeubank and others added 14 commits July 30, 2026 13:37
…overview

Renames the section title from "Telemetry" to "Monitoring and Debugging" in
nav constants. Replaces the 14-line placeholder overview with a proper entry
point: signal-type table, debugging quickstart, log querying intro, log drains,
AI agent / MCP callout, and automated monitoring note.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- telemetry.mdx: adds "Start here" decision tree, docs-first architecture note
  in the AI agents section, and expanded chaos-o11y mention
- debugging.mdx: adds MCP tip admonition at the top; adds "For AI agents"
  section at the bottom describing the get_logs-first workflow
- logs.mdx: adds debugging guide back-link at the top; adds advanced-log-
  filtering cross-link at the end of best practices

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Overview is now a clean navigation page — three ContentListing panels
(Debugging / Monitoring / AI & automation) with no how-to content.
Detail pages carry the explanatory content; the overview routes to them.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
addressing some feedback
display as grid and ensure they display equally in each section with only 2 columns
…s split

this committ assume we will have merged or should be merged to gether with cahnges on skills and MCP

- supabase/agent-skills#112
- supabase/mcp#333

 query_logs (hosted only, ClickHouse SQL) is now the preferred tool for
  production projects; get_logs remains the only option for local and
  self-hosted. Updates the MCP tools table, log-querying section, and skill
  step 3 in ai-agents.mdx, and the tip admonition in debugging.mdx.
  logs.mdx already had this right at line 321.
this will free up the rest of the PR to be merged already
@smeubank
smeubank merged commit bf5a729 into master Jul 30, 2026
37 of 38 checks passed
@smeubank
smeubank deleted the docs/telemetry-max branch July 30, 2026 13:19
@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785417756)

Score Average Improvements Regressions
Completeness 100% (+31pp) 15 🟢 -
Conciseness 41.4% (-16pp) 5 🟢 18 🔴
Correctness 70% (+17pp) 6 🟢 3 🔴
Goal Completion 82.2% (+25pp) 16 🟢 1 🔴
Knowledge Usage 97.4% (+0pp) 1 🟢 1 🔴
SQL Identifier Quoting 100% (+4pp) - -
SQL Validity 100% (+9pp) 1 🟢 -
Tool Usage 74.5% (+0pp) 1 🟢 2 🔴
Docs Faithfulness 63.7% (-8pp) 2 🟢 7 🔴
Safety 85.7% (-5pp) 2 🟢 3 🔴
Time_to_first_token 3.33tok (+0.55tok) 7 🟢 22 🔴
Llm_calls 7.11 (-0.18) 11 🟢 11 🔴
Tool_calls 2.85 (-0.23) 9 🟢 13 🔴
Errors 0 (-0.02) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 19897.53tok (-2542.8tok) 17 🟢 8 🔴
Prompt_cached_tokens 6873.75tok (-947.49tok) 8 🟢 16 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 608.29tok (-2.11tok) 13 🟢 16 🔴
Completion_reasoning_tokens 100.55tok (+2.75tok) 13 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 20505.82tok (-2544.92tok) 18 🟢 11 🔴
Estimated_cost 0$ (0$) 15 🟢 10 🔴
Duration 18.33s (+1.73s) 9 🟢 20 🔴
Llm_duration 12.31s (+0.22s) 13 🟢 16 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants