Skip to content

docs(supabase): add client-side trace propagation cross-links - #18972

Merged
sfanahata merged 19 commits into
getsentry:masterfrom
smeubank:docs(supabase)add-client-side-trace-propagation
Sep 8, 2026
Merged

docs(supabase): add client-side trace propagation cross-links#18972
sfanahata merged 19 commits into
getsentry:masterfrom
smeubank:docs(supabase)add-client-side-trace-propagation

Conversation

@smeubank

@smeubank smeubank commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Link Sentry's Supabase integration docs to the new Supabase client-side tracing feature. Adds a Trace Propagation section to the JS integration, a log correlation section to the Log Drains page, and new stub pages for Apple and Dart pointing to supabase.com/docs/guides/monitoring-and-debugging/client-side-tracing.

Python docs are pending.

We've extended trace propagation support to more platforms and this should help bring visibility to that.

IS YOUR CHANGE URGENT?

Nope:) nice to have though

Link Sentry's Supabase integration docs to the new Supabase client-side tracing feature. Adds a Trace Propagation section to the JS integration, a log correlation section to the Log Drains page, and new stub pages for Apple and Dart pointing to supabase.com/docs/guides/monitoring-and-debugging/client-side-tracing.

Python docs are pending.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

@smeubank is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@smeubank

smeubank commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

A member of the Team first needs to authorize it.

rejection hurts 🥹

this was wrong my colleague confirmed:

"that's wrong. I verified against sentry-javascript source: Sentry's OTel propagator does **not** emit traceparent unless you also set propagateTraceparent: true in Sentry.init() . It defaults to false. Without it, a user following this doc gets zero trace headers on Supabase calls, silently. For the browser SDK there's a second gap: Sentry only attaches headers to cross-origin requests for hosts listed in tracePropagationTargets, and Supabase is always cross-origin, so the project's Supabase URL needs to be in that list too."
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 8, 2026 9:44pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 8, 2026 9:44pm UTC

Request Review

Comment thread docs/product/drains/supabase.mdx Outdated
Add notes on unsampled traceparent-only requests, cross-event querying,
and Edge Function CORS allow-listing for sentry-trace.

Co-Authored-By: Kyle Tryon <kyle.tryon@sentry.io>
Comment thread docs/platforms/dart/common/integrations/supabase.mdx Outdated
Updated the integration instructions for Sentry and Supabase in Dart and Flutter apps, clarifying the requirements and providing code examples.
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deployment failed for project develop-docs with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deployment failed for project sentry-docs with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@buenaflor
buenaflor requested review from philprime and removed request for philipphofmann August 26, 2026 15:38
Comment thread docs/product/drains/supabase.mdx Outdated
Comment thread docs/platforms/dart/common/integrations/supabase.mdx Outdated
update to have one line per paragraph in the md
@buenaflor
buenaflor requested a review from itaybre August 27, 2026 07:57
@codeowner-assignment
codeowner-assignment Bot requested review from a team August 31, 2026 19:35
Comment thread docs/product/drains/supabase.mdx Outdated
Point to the canonical platform URL so the Trace Propagation heading resolves instead of a synthesized node-guide path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codeowner-assignment
codeowner-assignment Bot requested review from a team September 2, 2026 15:05
@smeubank

smeubank commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@buenaflor i think sosmone from sentry has to trigger the vercel deploy and then you can merge

Comment thread docs/platforms/dart/common/integrations/supabase.mdx Outdated
smeubank and others added 3 commits September 2, 2026 20:57
The Supabase page lives under `dart/common/`, which the Flutter guide
inherits, so the single `Sentry.init` snippet was served to Flutter users
as well. Flutter apps must initialize with `SentryFlutter.init` or they
lose native crash handling and the Flutter-specific instrumentations.

Split the snippet with `PlatformSection` so each platform sees only its
own initializer, matching how `dart-integrations/grpc.mdx` and
`tracing/streamed-spans` already handle this.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Every other Dart integration ships as a shared body in
`includes/dart-integrations/` with a thin wrapper page under both
`dart/common/integrations/` and `dart/guides/flutter/integrations/`.
Supabase only had the common page, so the Flutter guide inherited the
Dart title, description and sidebar position.

Move the body into an include and add the Flutter wrapper so each guide
gets its own metadata. Add the missing Supabase row to the integrations
table, which is hand-maintained and drives discovery from the Flutter
integrations index.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread includes/dart-integrations/supabase.mdx
buenaflor and others added 3 commits September 3, 2026 23:38
`Supabase.initialize()` is a `supabase_flutter` singleton wrapper and does
not exist in the pure Dart `supabase` package, which only exposes the
`SupabaseClient` constructor. The Dart snippet therefore would not compile
in a non-Flutter app.

Construct `SupabaseClient` directly and pass `SentryHttpClient` as its
`httpClient`. The Flutter snippet keeps `Supabase.initialize()`.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This was the only include in `dart-integrations/` without imports, and
the two variants now pull Supabase from different packages: `supabase`
for Dart and `supabase_flutter` for Flutter. Without the import lines
there is nothing telling the reader which package each symbol comes from.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@coolguyzone

Copy link
Copy Markdown
Contributor

Hey @smeubank , looks like the 404 check is blocking the merge here. Is 'product/drains/supabase' a page that will be created in a PR that will be merged first? If not I would remove it or replace with a placeholder so this passes builds.

@sfanahata sfanahata 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.

🚢

@sfanahata
sfanahata merged commit a57e120 into getsentry:master Sep 8, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants