Skip to content

docs(python): add python docs for otel instrumention - #48898

Merged
pamelachia merged 3 commits into
masterfrom
docs/python-otel-instrumentation
Aug 11, 2026
Merged

pamelachia merged 3 commits into
masterfrom
docs/python-otel-instrumentation

Conversation

@o-santi

@o-santi o-santi commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Adds a new tab section for the client-side-tracing.mdx document file, explaining how to setup OTel context propagation in the supabase-py library.

What is the current behavior?

No documentation.

What is the new behavior?

Documentation.

Additional context

Add any other context or screenshots.

Summary by CodeRabbit

  • Documentation
    • Updated the client-side tracing guide to document W3C trace-context propagation support in the Python SDK.
    • Added Python setup instructions for OpenTelemetry HTTPX instrumentation, tracer configuration, and tracing Supabase queries.

@o-santi
o-santi requested a review from a team as a code owner August 10, 2026 13:05
@o-santi
o-santi requested a review from grdsdev August 10, 2026 13:05
@vercel

vercel Bot commented Aug 10, 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 Aug 11, 2026 2:28pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 11, 2026 2:28pm
design-system Skipped Skipped Aug 11, 2026 2:28pm
studio-self-hosted Skipped Skipped Aug 11, 2026 2:28pm
studio-staging Skipped Skipped Aug 11, 2026 2:28pm
ui-library Skipped Skipped Aug 11, 2026 2:28pm
zone-www-dot-com Skipped Skipped Aug 11, 2026 2:28pm

Request Review

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

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5e582bcd-9c37-4d33-b8e9-bddd5f873d56

📥 Commits

Reviewing files that changed from the base of the PR and between 6ff2151 and dbb31f7.

📒 Files selected for processing (1)
  • apps/docs/content/guides/monitoring-and-debugging/client-side-tracing.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/content/guides/monitoring-and-debugging/client-side-tracing.mdx

📝 Walkthrough

Walkthrough

The client-side tracing guide now documents Python SDK support for W3C trace-context propagation. It adds Python instructions for OpenTelemetry and HTTPX instrumentation, tracer setup, and a traced asynchronous Supabase query.

Changes

Python client-side tracing

Layer / File(s) Summary
Document Python tracing setup
apps/docs/content/guides/monitoring-and-debugging/client-side-tracing.mdx
The guide identifies Python SDK support and documents HTTPX instrumentation, tracer setup, and an asynchronous Supabase query.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: grdsdev

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Python documentation change for OpenTelemetry instrumentation, despite a minor spelling error in “instrumention”.
Description check ✅ Passed The description follows the required template and explains the documentation change, current behavior, and new behavior.
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/python-otel-instrumentation

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.

@supabase

supabase Bot commented Aug 10, 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 ↗︎.

@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: 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/monitoring-and-debugging/client-side-tracing.mdx`:
- Around line 230-241: Add the missing `from opentelemetry import trace` import
and initialize `client` with `create_async_client()` before `query()` uses it,
preserving the existing tracer setup and query flow.
- Around line 221-226: Update the HTTPX instrumentation section around
HTTPXClientInstrumentor().instrument() to explicitly document that global
instrumentation affects every httpx client in the process, including third-party
calls. Either show how to instrument only the Supabase httpx.Client instance or
add a clear warning about trace-context propagation to other HTTPX requests.
- Line 218: Correct the package name in the installation command by replacing
openetelemtry-sdk with opentelemetry-sdk, while leaving the
opentelemetry-instrumentation-httpx dependency unchanged.
🪄 Autofix

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: 650b2f59-b383-4554-970b-d34a9b10cab9

📥 Commits

Reviewing files that changed from the base of the PR and between c3742ba and 3168c00.

📒 Files selected for processing (1)
  • apps/docs/content/guides/monitoring-and-debugging/client-side-tracing.mdx

@o-santi
o-santi force-pushed the docs/python-otel-instrumentation branch 3 times, most recently from ef15791 to 6ff2151 Compare August 10, 2026 14:32
@mandarini
mandarini force-pushed the docs/python-otel-instrumentation branch from 6ff2151 to dbb31f7 Compare August 11, 2026 14:24
@pamelachia
pamelachia merged commit 34c29f0 into master Aug 11, 2026
36 checks passed
@pamelachia
pamelachia deleted the docs/python-otel-instrumentation branch August 11, 2026 17:00
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.

4 participants