← English news
Priority 4/5

Supabase Integrates W3C Trace Context Propagation to Unify Client and Server Logs

The supabase-js SDK and other client libraries now support W3C Trace Context, enabling developers to automatically correlate frontend requests with backend API Gateway and Edge Function logs using a single trace ID.

Supabase Integrates W3C Trace Context Propagation to Unify Client and Server Logs

Supabase has introduced support for W3C-compliant trace context propagation across its official client libraries, including supabase-js, Swift, Flutter, and Python. This capability allows request contexts initialized on the frontend to propagate seamlessly to Supabase API Gateways and Edge Functions. By sharing a unified trace ID, engineers can trace a request's lifecycle across network boundaries without relying on imprecise timestamp-based manual correlation.

Primary source

Open Supabase Blog ↗

This article summarizes the source. Check the original for full details and conditions.

Comparison

AspectBefore / AlternativeAfter / This
Log CorrelationManual correlation using timestamps and IP addresses across frontend and backend boundariesAutomatic end-to-end tracing via a single, shared trace_id header
Standard SupportProprietary or absent tracing context in client-side SDK requestsFull compliance with W3C Trace Context standards (traceparent headers)
Tooling CompatibilityInability to easily export coherent client-server spans to third-party APM platformsOut-of-the-box compatibility with OpenTelemetry, Sentry, Datadog, and Dynatrace

Action Checklist

  1. Update your supabase-js client or other mobile/backend SDKs to the latest version. Verify support for Swift, Flutter, or Python if utilizing those platforms.
  2. Enable the tracePropagation configuration option during the Supabase client initialization. This option explicitly instructs the SDK to append tracing headers to requests.
  3. Ensure your observability pipeline, such as OpenTelemetry or Datadog, is configured to parse W3C headers. Standard traceparent headers will now be injected into outbound requests to your Supabase domains.