Repository navigation
docs(python): add python docs for otel instrumention - #48898
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe 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. ChangesPython client-side tracing
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 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 |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
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/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
📒 Files selected for processing (1)
apps/docs/content/guides/monitoring-and-debugging/client-side-tracing.mdx
ef15791 to
6ff2151
Compare
6ff2151 to
dbb31f7
Compare
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.mdxdocument file, explaining how to setup OTel context propagation in thesupabase-pylibrary.What is the current behavior?
No documentation.
What is the new behavior?
Documentation.
Additional context
Add any other context or screenshots.
Summary by CodeRabbit