---
title: "Connect client traces to your logs"
url: https://daily.dev/posts/connect-client-traces-to-your-logs-hfytxrfls
source_url: https://supabase.com/blog/connect-client-traces-to-your-logs
type: article
source: "Supabase"
published: 2026-08-18T17:08:41.584Z
updated: 2026-08-24T06:54:44.391Z
tags: ["javascript", "devops", "observability", "opentelemetry", "supabase"]
reading_time: 4
upvotes: 6
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect client traces to your logs

**[Supabase](https://daily.dev/sources/supabase)** · 4 min read · 6 upvotes · 1 comments

## Summary

supabase-js now supports propagating W3C Trace Context (traceparent, tracestate, baggage headers) so a client-side trace and its matching Supabase API Gateway or Edge Function log share the same trace_id. Enabling tracePropagation requires bringing your own OpenTelemetry tracer, loading a separate tracing entry point, and wrapping calls in an active span. The feature is opt-in with zero bundle impact when unused, works only against Supabase domains, currently covers API Gateway and Edge Function logs, and is also available in Swift, Flutter, and Python. Users on supabase-js 2.106.0-2.111.x need to upgrade to 2.112.0+ and add the new tracing import, since earlier versions silently sent no trace headers in bundled apps.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://supabase.com/blog/connect-client-traces-to-your-logs>

## Questions this post answers

### How do I connect client-side traces to Supabase server logs using supabase-js?

Enable tracePropagation in supabase-js so the SDK attaches traceparent, tracestate, and baggage headers to requests sent to Supabase domains. Supabase reads the incoming trace context and stamps the same trace_id onto its API Gateway and Edge Function logs, letting any W3C-compliant tracer like OpenTelemetry, Sentry, Datadog, Honeycomb, or Grafana pick the trace back up on the server.

_daily.dev surfaces observability updates like this for teams wiring end-to-end tracing into Supabase apps._

### Why is trace propagation not working even after I enabled tracePropagation in supabase-js?

If there is no active span at request time or no registered TracerProvider, the API defaults to a noop provider and there is nothing to propagate, so the SDK silently no-ops. Also, unsampled traces send no headers by default unless respectSamplingDecision is set to false, and versions 2.106.0 through 2.111.x silently sent no trace headers in bundled apps regardless of configuration.

_Developers debugging tracing gaps in Supabase apps can track fixes like this via daily.dev._

### Do I need to upgrade supabase-js if I'm already using tracePropagation?

Yes, upgrade to supabase-js 2.112.0 or later and add the import '@supabase/supabase-js/tracing' line at the application entry point. Versions 2.106.0 through 2.111.x silently sent no trace headers in bundled apps, so the version bump is what actually fixes propagation, not merely adding the import statement.

_daily.dev helps developers stay ahead of Supabase SDK upgrades that affect production tracing._

## Community discussion

Top comments from developers on daily.dev.

**@byteoutlaw** · 0 upvotes

> Why does it only work on supabase domains?

## Similar posts on daily.dev

- [Fixing Broken Traces in GCP Cloud Run: A Custom OpenTelemetry Propagator](https://daily.dev/posts/fixing-broken-traces-in-gcp-cloud-run-a-custom-opentelemetry-propagator-2kwtpexct) · Last9 · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#devops](https://daily.dev/tags/devops), [#observability](https://daily.dev/tags/observability), [#opentelemetry](https://daily.dev/tags/opentelemetry), [#supabase](https://daily.dev/tags/supabase)

[View this post on daily.dev](https://daily.dev/posts/connect-client-traces-to-your-logs-hfytxrfls)
