Skip to content

Supabase and PostgresPlatform operationsreference

Supabase observability surface: trace headers, health advisors, log sources

How a request made by supabase-js becomes a row in the project logs, when the platform’s Health Check Advisors raise an error-rate lint, how much of that surface a script can read or write from outside, how to get planning time for Data API (application programming interface) queries into pg_stat_statements, and what the project metrics endpoint shows while a session waits on a lock. It is for whoever has to wire tracing, alerting or log export on a Supabase project and wants to know which documented behaviour held when it was run.

The rows for OB06 ran on 2026-10-28 on a different project shape and CLI (command-line interface) release, given in their own section. Every other measured row below ran on 2026-10-10 from one macOS machine in Singapore (Bun 1.3.14, a current Node release for the esbuild bundles, supabase CLI 2.120.0), against throwaway projects in ap-southeast-1 on a Pro-plan organisation, driven through the Management API from the same machine. Three runs are labelled run1, run2 and run3 in the lab’s RUNLOG; every cell is n = 1 unless a row says otherwise. Rows marked documented come from the public pages cited at the claim and were not run. The lab’s raw captures carry project refs and were not published; the figures are quoted from the RUNLOG of the observability-surface experiment, and redacted copies of the run artifacts are published under out/ and linked in Modules.

TL;DR:

  • supabase-js 2.111.0, 2.112.0 and 2.117.3 attach traceparent to REST (representational state transfer) and Edge Function calls made inside an active span, and never tracestate or baggage with the default provider.1 A bundle run with no node_modules loses the header on 2.111.0 only, with no warning; 2.112.0 and 2.117.3 kept it in all five packagings.
  • The client’s trace id lands in edge_logs as the trace_id attribute (38 of 38 rows carry one). function_edge_logs (0 of 39) and function_logs (0 of 78) do not; the id reaches function_logs only if the function prints the traceparent it received.
  • The Health Check Advisors fired on at least 5 failing 5xx requests in each of two consecutive five-minute buckets started at a UTC (Coordinated Universal Time) boundary, at shares from 1% to 100%, and did not fire on 4 or fewer. The lint text says “at least 10%”.2
  • A lint appeared 35-66 s after the second bucket closed, the answer is cached for about 60 s, and it cleared 306-367 s after the last failing request.
  • The logs endpoint returned 36 of 36 marked requests per source within 30 s (15 s polling) in a 36-minute window, and carried 11 sources.
  • supabase notebooks pull and push round-trip by notebook name, keep cell ids, and leave a project notebook with no local file alone under --yes with a closed stdin.
  • Log drains were not measured: the v2 route answered 403 on a Pro and a Team organisation, and the v1 API publishes no route.
  • pg_stat_statements.track_planning reached Data API queries only when set on authenticator (plans 3 for 3 GETs as each of anon, authenticated and service_role, in 2 of 2 runs on 2026-10-28). Set on anon, authenticated, service_role or postgres it read off inside the request; alter database, grant set on parameter, the postgres-config API and the CLI all refused it.
  • The project metrics endpoint carries no wait-event label, no state label and no pg_locks family. During two 130 s lock waits the only pg_ series among the 22 matching families that moved was pg_stat_activity_xact_runtime, the age of the oldest open transaction, and its values changed 60 to 70 s apart.
  • A restore-to-new-project (clone) path in the Management API: on 2026-10-28 the lab found none in a path-name and create-body scan of 115 v1 and 36 v2 paths, GET /v1/projects/{ref}/clone answered 404, and the Dashboard’s clone route refused a personal access token with 401.

You want toSurfaceHeld on 2026-10-10 unless dated
Correlate a client span with a gateway log rowtraceparent from supabase-js, read as edge_logs.trace_idyes, 14 of 14 sending variants
Correlate a client span with an Edge Function log linetraceparent received by the functiononly if the function logs it
Be told that a service is failingHealth Check Advisors, POST /v2/projects/{ref}/advisors/runafter 5 failures in each of two buckets
Read logs from a scriptanalytics/endpoints/logs, see the logs endpoint guide11 sources, 15 s poll ceiling
Keep dashboard notebooks in gitsupabase notebooks pull / pushyes, by notebook name
Ship logs to your own endpointlog drainsnot measured
Get planning time for Data API queries into pg_stat_statementsalter role authenticator set pg_stat_statements.track_planning = on, reload PostgREST config, new authenticator connectionsyes, and no other setting did (2026-10-28)
See sessions waiting on locksproject metrics endpointno wait-event or lock series; read pg_stat_activity (2026-10-28)
Restore to a new project from a scriptManagement APInone found in a path-name and create-body scan of 115 v1 and 36 v2 paths (2026-10-28)

With tracing on, supabase-js attaches traceparent, tracestate and baggage to requests for Supabase domains only, and the trace id then shows in API Gateway and Edge Function logs.13 From 2.112.0 the OpenTelemetry integration is the opt-in @supabase/supabase-js/tracing import; without it the client warns once and sends no headers. Releases 2.106.0 to 2.111.x load @opentelemetry/api dynamically and send nothing, silently, when it is missing.1 Before 2.112.3 an unsampled span sends no headers; from 2.112.3 it sends traceparent only.1

The probe used one client built on @opentelemetry/sdk-trace-node with the default W3C (World Wide Web Consortium) propagator, rendered once per variant against one project with a table and an Edge Function that logs the traceparent it receives. Releases came from npm aliases: 2.111.0 (the only stable 2.111.x on the registry on 2026-10-10), 2.112.0 and 2.117.3 (the latest that day). Headers were read at the client’s own fetch boundary, so “sent” means the SDK (software development kit) attached them, not that a server kept them.

A cell is traceparent attached to a REST call and to an Edge Function invoke made inside an active span; both calls gave the same answer in every cell. The same matrix came out in run1, run2 and run3. tracestate and baggage were attached in no cell.

ReleaseUnbundled (Bun)Bun bundle, next to node_modulesBun bundle, no node_modulesesbuild bundle (Node), next to node_modulesesbuild bundle (Node), no node_modules
2.111.0sentsentnone, no warningsentnone, no warning
2.112.0sentsentsentsentsent
2.117.3sentsentsentsentsent

The Bun bundles ran with Bun’s runtime auto-install disabled. The same module without that setting showed 2.111.0 sending from the no-node_modules directory; that Bun fetched @opentelemetry/api from the registry at run time is an inference from the setting changing the outcome, and the fetch was not observed. The reading: the loss on 2.111.0 needs a bundle in which the SDK’s runtime import("@opentelemetry/api") cannot resolve, and 2.112.0 and later carry the import statically through the /tracing subpath and kept the header.

ControlResult
2.112.0 without the /tracing importno headers, one console.warn beginning “tracePropagation is enabled but the tracing runtime is not loaded” (as documented)
2.112.0, unsampled spanno headers (documented for releases before 2.112.3)
2.117.3, unsampled spantraceparent sent (documented for 2.112.3 and later); tracestate and baggage not asked about in this row
2.117.3 with tracePropagation offnone
REST call with no active spannone, in every variant

The wrapped fetch was exercised with a fake transport underneath, so nothing left the machine.

URL host handed to the wrapped fetchHeader attached
third-party.example.testnone, all three releases
xsupabase.conone, all three releases
supabase.co.example.testnone, all three releases
any other host under .supabase.cotraceparent, all three releases
the base URL of a client created against a non-Supabase host (the self-hosted shape)traceparent, on that host

The last row was observed; the explanation, that the SDK adds the base URL (Uniform Resource Locator)‘s hostname to the default targets, was read in the installed 2.117.3 dist/index.mjs (getDefaultPropagationTargets) and not tested separately. The docs page lists *.supabase.co, *.supabase.in and localhost as the defaults and does not mention the exception.1 Not measured: a custom domain, redirects, and a custom fetch that rewrites the URL after the SDK’s check (from the source, the check reads the URL before the custom fetch runs; not from a run).

Run run3, 19 variants, 57 trace ids.

supabase-js(traceparent)API gatewayedge_logstrace_id attributeEdge Function(receives traceparent)function_edge_logsno trace idfunction_logsonly if the function logs itconsole.log

Text version: the gateway writes the client’s id to edge_logs; the function receives it; function_edge_logs records the invocation without it; function_logs holds it only when the function’s own console.log wrote it.

SourceRows with a trace_id
edge_logs38 of 38
postgrest_logs0 of 106
function_edge_logs0 of 39
function_logs0 of 78
auth_logs0 of 43
storage_logs0 of 3
realtime_logs0 of 5
pgbouncer_logs0 of 96
postgres_logs0 of 17
  • REST: the client’s trace id came back as the trace_id attribute of an edge_logs row in 14 of 14 variants where the header was sent, and in none of the 5 where it was not. Every edge_logs row has a trace_id, including requests with no client header.
  • Edge Function: the function received a traceparent carrying the client’s trace id in all 14 sending variants (the function echoes it). A search of every attribute key and the message of every source for six client trace ids (the REST id and the function id of each of the three unbundled variants) found the three REST ids as the trace_id attribute of edge_logs rows, and the three function ids only inside the function_logs message that the function’s own console.log wrote.
  • A function call made with no active span still reached the function with a platform-generated traceparent (trace flags 00) and a baggage entry sb-request-id, in every variant.

The Edge Function result is the one row where measurement and the docs page differ: “trace id appears in Edge Function logs” held only for what the function prints itself. It is one project and one run, and the platform may stamp function rows under a key or source this query did not cover.

Not measured: browser bundles, webpack, Vite and Turbopack, Realtime frames, the Swift, Dart and Python SDKs, Sentry and Datadog propagators, a tracestate or baggage value set by the app.


The platform ships four checks, log_data_api_error_rate_high, log_auth_error_rate_high, log_storage_error_rate_high and log_edge_function_error_rate_high, “read from log data”; POST /v2/projects/{ref}/advisors/run returns them, results are cached, and an empty result means every check ran and found nothing.2 The lint text the platform returns says 5xx for at least 10% of requests across two consecutive five-minute periods, and that failures must persist in both.

The probe used one project per arm, arms concurrent. Each arm waited for the next UTC five-minute boundary, sent at fixed rates for two buckets (one bucket for the single-bucket arms), and polled the four health lints every 30 s until the lint cleared or 8 minutes after traffic ended. The 5xx were real service answers (see Inducing a 5xx). run1 had 11 arms, run2 8 and run3 5.

ArmRequests per bucketFailing per bucketShareFired
data, 100%100100100%yes
data, 50%1005050%yes
data, 12%1001212%yes
data, 8%10088%yes
data, 5% (run2, repeated in run3)10055%yes, yes
data, 4%10044%no
data, 3% (run2, repeated in run3)10033%no, no
data, 2%25052%yes
data, 1%about 600 (598 sent)61%yes
data, 1%10011%no
data, 100%, one request a minute55100%yes
data, 20%, one request a minute5120%no
data, 100%, one request per bucket11100%no
data, 404 on every request1000 (all 404)0% 5xxno
data, 100% failing in bucket 1 only, healthy bucket 2100100 then 0-no
data, healthy bucket 1, 100% failing in bucket 21000 then 100-no
data, 100% failing for one bucket, no second bucket100100-no
Auth admin create, 100% 500100100100%yes
Storage list, 100% 500100100100%yes
Edge Function returning 500100100100%yes
Edge Function that throws100100100%yes

The lint fired in every arm with at least 5 failing requests in each of two consecutive five-minute buckets and in no arm with 4 or fewer, at any share from 1% to 100%. On this project the operative rule looks like a failing-request count of about 5 per bucket, not the 10% share in the lint text; 6 of 600 (1%) fired while 1 of 100 (1%) did not. This is an inference from the rows above. Not run: exactly 4 against 5 at other volumes, a count of 5 at thousands of requests per bucket (whether a share rule applies on top of the count at that volume), and a start part-way through a bucket, so the clock alignment of the buckets is the design of the probe rather than a separated finding.

Thirteen firings across the three runs.

QuantityMeasuredResolution
First lint after the second bucket closed35-36 s in run1 (9 arms), 65-66 s in run2 and run3 (4 arms)30 s polling, so each figure is an upper bound within 30 s
Cache refresh (observed_at steps)median 86-91 s per arm at 30 s pollingthe next 30 s poll after a refresh
Cache refresh, one project polled every 10 s62-64 s steps, four refreshes (exploratory, not archived)about 60 s
Lint gone after the last failing request306-337 s in 12 arms, 367 s in the 8% armfirst poll after the next bucket boundary plus the cache

The lint was absent at every poll before the second bucket had closed. An immediate second call at baseline returned the same empty list in all 24 arms. The detail text at firing reads Failing: <service> (<share>% of <n> requests failing), where <n> is the request count of the most recent bucket (100, 250 and 600 in the arms above); for Edge Functions the service field is the function path. level was ERROR and categories was HEALTH. Arms sending 100 requests per bucket reported 100 and the 5-per-bucket arm reported 5; the 600-per-bucket arm reported 600 against 598 sent. In a first exploratory run (60 then 500 failing requests, not archived) the lint reported 538 requests against 560 sent, so a small fraction of requests may go uncounted. No other lint appeared in any arm and no advisor_check_unavailable was seen.

ServiceWay to get a 5xx
Data API (PostgREST)a function that runs raise sqlstate 'PT500'
Autha raising BEFORE INSERT trigger on auth.users, then an admin create
Storagea raising function used by a storage.objects policy, then a list
Edge Functionsa function returning 500, or one that throws

A 404-only load did not fire, so a 5xx has to come from the service itself.

ClaimDocumentedMeasured 2026-10-10Filed upstream
Advisor firing thresholdat least 10% of requests, two consecutive five-minute periods5 failing requests in each of two buckets fired at 1%, 2% and 5%; 4 or fewer did notnot checked; no report is recorded in the lab RUNLOG
tracestate and baggageattached with traceparent1not attached by the default provider in any cellnot checked
Trace id in Edge Function logsappears in Edge Function logs3absent from function_edge_logs and function_logs unless the function prints itnot checked
Default propagation targets*.supabase.co, *.supabase.in, localhostalso the client’s own base URL hostnot checked

Not measured: the other lints in the v2 enum, Realtime, projects with real user traffic, other regions and plans, the Studio Health tab.


The query shape, the source column and the traps of the endpoint are in Query Supabase project logs through the Management API; this section holds only what the observability probe added.

Canary design (run1): one project, one marked REST request (lands in edge_logs) and one marked Edge Function invoke (lands in function_edge_logs by URL and in function_logs by the console line) every minute for 36 minutes, 00:48-01:24 UTC. A poller asked the logs endpoint for every marker every 15 s; the first poll that returned a marker is its first-seen time. The public pages make no claim about ingestion lag.

SourceMarkers returnedLag p50p90p99MaxOver 240 s
edge_logs36 of 3615 s15.1 s30 s30 s0
function_edge_logs36 of 3615 s15.1 s15.1 s15.1 s0
function_logs36 of 3615 s15.1 s15.1 s15.1 s0

The 15 s poll is the resolution: nearly every marker came back on the first poll after it was sent, so these figures are ceilings within one poll; the distribution below 15 s was not resolved. The row’s own timestamp minus the send time was 0 to 1 s. There were 142 polls and none returned an error. A lag above 4 minutes recorded once in a separate lab experiment did not recur in this window, and one 36-minute window supports no alert threshold.

  • Sources on the project after one request of each kind: auth_audit_logs, auth_logs, edge_logs, function_edge_logs, function_logs, pgbouncer_logs, postgres_logs, postgrest_logs, realtime_logs, storage_logs, supavisor_logs (11). The run opened one connection through the shared pooler on 6543 and on 5432 and joined one websocket. Which source appeared when was not measured, and neither was whether pgbouncer_logs rows exist before any connection.
  • Message search of this run’s own markers: the failing pooler statement’s literal in postgres_logs (2 rows, one per port); the storage bucket and object name in storage_logs (2 rows) and edge_logs (1); the Auth user email in auth_logs and auth_audit_logs (1 each); the Realtime topic name in no source.
  • A 300-request REST burst, all answered 200, returned 300 rows from the logs endpoint.
  • usage.api-requests-count returned 341, equal to the project’s edge_logs row count: the REST canary 36, the burst 300 and 5 further rows (not itemised). The 37 function invocations sit in function_edge_logs, in neither figure.
  • usage.api-counts returned per-minute total_rest_requests, total_auth_requests, total_storage_requests and total_realtime_requests buckets (HTTP (Hypertext Transfer Protocol) 200).
  • GET /platform/organizations/{org}/usage with a personal access token answered 401 Unsupported access token, and the v1 OpenAPI document has no organisation usage path, so organisation-level logs GB (gigabyte) figures were not reachable by token and no known log volume was compared with them.

Not measured: logs per GB, query-quota billing, the Dashboard Logs Explorer, load above one request a minute other than the burst, other regions. No throttling was met at 4 logs queries a minute; the advisor arms ran alongside without a 429 seen by this module.


The CLI help (2.120.0) and the v2 OpenAPI document say pull writes project notebooks to supabase/notebooks, keeping existing files unless an id is given; push writes local files and asks about project notebooks the directory lacks; an update replaces the body, a cell echoing its id keeps its identity, and a cell without one is added. Measured on run2, one project, one pass:

StepResult
Create through POST /v2/projects/{ref}/notebooks with markdown, database and log cellsserver-assigned ids on all 3 cells
pullone file ob05-alpha.json (file name is the notebook name); top-level keys description, favorite, content, no id and no name; cells equal to the API’s
Edit one sql, append a cell without an id, push“0 created, 1 updated”; the API held 4 cells: the edited sql, the 3 original ids, an id on the new cell, updated_by set
Second pull on the unchanged treewrote nothing (“Kept 1 existing local notebook(s) unchanged”)
pull <id> over a locally modified filerestored the project’s version
New local file, pushcreated on the project (“1 created, 1 updated”)
Local file for a project notebook removed, push --yes, stdin closedupdated the remaining notebook, reported “1 project notebook(s) are not in …: ob05-alpha - Left alone - rerun interactively to resolve”; the notebook stayed on the project

The CLI exit code was 0 in every call, including the one that left a notebook alone, so a script has to read the output to see it. Not measured: the choices the interactive prompt offers, notebooks with a read-replica database_identifier, running a notebook (the v2 OpenAPI document has no run endpoint), concurrent edits from the Dashboard.


Drains are documented on Pro, Team and Enterprise; an HTTP drain posts a JSON (JavaScript Object Notation) array in batches of at most 250 events or one second, with optional gzip and HTTP/1 or HTTP/2.45 On the Pro organisation, GET /v1/organizations/{slug}/entitlements read log_drains hasAccess true and audit_log_drains false. GET and POST /v2/projects/{ref}/analytics/log-drains both answered 403 forbidden, “Your organization does not have access to this API”, on that Pro organisation’s project (archived in the RUNLOG), and on a Team organisation’s project in an exploratory check that was not archived. The v1 API publishes no log-drains route; the v2 document lists /v2/projects/{ref}/analytics/log-drains and its /{id} form.6 What grants access to the v2 route was not determined.

No drain was created, so batch size, flush spacing, the content-encoding the platform sends, HTTP version, event fields, arrival lag and arriving sources are unmeasured. A Worker sink with a SQLite-backed Durable Object was tested on its own (a plain POST and a gzip POST stored, the gzip body decoded to [{"probe":"gzip"}], HTTP/1.1 seen, a POST without the key answered 401) and waits for a drain. Residency consequences are in Supabase data residency and sovereignty.


Data API planning statistics, lock waits and restore to a new project

Section titled “Data API planning statistics, lock waits and restore to a new project”

OB06 asked three questions of one project: which setting puts planning time for Data API queries into pg_stat_statements, whether the project metrics endpoint shows a session waiting on a lock, and whether a restore to a new project can be scripted. It ran twice on 2026-10-28, ob06-run2 (08:30-08:38 UTC) and ob06-run3 (08:38-08:45 UTC), each on its own Micro project on the Pro-plan organisation in ap-southeast-1, Postgres 17.11, from the same macOS machine (Bun 1.3.14, supabase CLI 2.122.0). SQL (Structured Query Language) ran as postgres over a session-mode pooler connection. ob06-run2 ran an earlier revision of the module: it had no grant set on parameter probe and counted changes in pg_ and node_ series together. A run before both used a postgres session through the pooler as its positive control without first dropping the pooler’s other backends, read off, and was not published; the control in the first table below replaced it. Both runs agree on every row unless a row names one, so n = 2 runs, one project each. The figures are from the RUNLOG and the two redacted artifacts in out/2026-10-28/.

pg_stat_statements.track_planning for Data API queries

Section titled “pg_stat_statements.track_planning for Data API queries”

Postgres applies a role’s ALTER ROLE ... SET value when that role starts a new session, and “executing SET ROLE or SET SESSION AUTHORIZATION does not cause new configuration values to be set”.7 PostgREST logs in as authenticator and switches role per request. Its docs say Postgres applies the authenticator settings and PostgREST applies the impersonated role’s settings as transaction-scoped settings, except that “Settings that have a context which requires privileges won’t be applied by default”; on Postgres 15 and later GRANT SET ON PARAMETER <setting> TO <authenticator> lifts that.8 The page read was the stable docs, PostgREST 16 on 2026-10-28; the project’s PostgREST version was not recorded.

What postgres could set (OB06a, OB06b, OB06d):

Attempt, as postgresResult
alter role <r> set pg_stat_statements.track_planning = on for authenticator, authenticated, anon, postgres and service_roleaccepted for all five (each reset afterwards)
alter database postgres set pg_stat_statements.track_planning = onrefused, permission denied to set parameter "pg_stat_statements.track_planning"
grant set on parameter pg_stat_statements.track_planning to authenticator (ob06-run3 only)refused, permission denied for parameter pg_stat_statements.track_planning
a new postgres session runs set role to authenticator, authenticated, anon or service_role after that role’s alter roleshow read off for all four
control: alter role postgres set ..., the other postgres backends terminated (1), then a new login (backend 0.01 s old)on, source user
PUT /v1/projects/{ref}/config/database/postgres with the keyHTTP 400 Unrecognized key: "pg_stat_statements.track_planning"; the config read back without the key
supabase postgres-config update --config pg_stat_statements.track_planning=on --no-restart --experimentalexit 1, unknown Postgres config parameter: pg_stat_statements.track_planning; the config read back without the key and show stayed off

The parameter’s context on the project is superuser, default off, with no pg_parameter_acl entry. The v1 OpenAPI document’s UpdatePostgresConfigBody has additionalProperties: false and lists pg_stat_statements.max but not pg_stat_statements.track_planning (re-read 2026-10-28).6

The Data API arms (OB06c) ran one setting at a time. Each arm applied its setting, ran NOTIFY pgrst, 'reload config', terminated the authenticator backends (2 per arm), waited for the Data API to answer, and then, as anon, authenticated (a password-grant user token) and service_role, called an RPC (remote procedure call) that returns the setting’s value inside the request and sent 3 GETs to a table unique to that arm and role. The PostgREST statement for that table (WITH pgrst_source AS ( SELECT ... )) was then read from pg_stat_statements.

Setting onValue inside the request, anon / authenticated / service_roleplans per role for 3 GETstotal_plan_time over the 3 planned GETs, anon / authenticated / service_role
nothing (baseline)off / off / off00
authenticatoron / on / on30.43 / 0.32 / 0.31 ms (ob06-run2); 0.49 / 0.33 / 0.36 ms (ob06-run3)
authenticatedoff / off / off00
anonoff / off / off00
service_roleoff / off / off00
postgresoff / off / off00
the databasenot run, the alter database was refusednot runnot run

Every RPC and GET answered 200 in every arm, so a role setting that PostgREST skips did not break requests. The calls column read 5 for each table, because it also counts the module’s own create table and insert.

The reading, an inference: a Data API request runs on an authenticator login, so the login-time setting on authenticator reaches it, and it reaches every Data API role at once. The per-role settings were skipped as the PostgREST docs describe for a parameter whose context needs privileges, and the documented way round that, GRANT SET ON PARAMETER, was refused to postgres. No PostgREST log was read, so the skip itself was not observed. Every arm terminated the authenticator backends; whether the setting reaches requests on connections opened before the ALTER was not tested, and the Postgres docs above say it would not.

Not measured: the throughput cost of planning statistics, a Data API path through Supavisor, a custom schema, other PostgREST versions.

Lock waits on the project metrics endpoint

Section titled “Lock waits on the project metrics endpoint”

The metrics docs give Basic auth with the user service_role and a Secret API key (sb_secret_...) as the password,9 and the self-hosted Prometheus page says “Keep the scrape interval at 60 seconds to match Supabase’s refresh cadence.”10

OB06e read one scrape. Basic auth with the secret key and with the legacy service_role JWT (JSON Web Token) both answered 200. The scrape held 307 families and 766 series, 49 of the families named pg_*. 22 families matched lock|wait|activity|conflict|blocked|deadlock:

Name prefixMatching families
pg_pg_stat_activity_xact_runtime, pg_stat_database_conflicts_confl_{bufferpin,deadlock,lock,snapshot,tablespace}_total, pg_stat_database_conflicts_total, pg_stat_database_deadlocks_total
pgbouncer_pgbouncer_pools_client_{maxwait_seconds,waiting_cancel_connections,waiting_connections}, pgbouncer_stats_client_wait_seconds_total
pgrst_pgrst_db_pool_waiting
db_sql_ (Auth, otelsql)db_sql_connection_wait_total, db_sql_connection_wait_duration_milliseconds_total
node_node_procs_blocked, node_pressure_{cpu,io,memory}_waiting_seconds_total, node_memory_Mlocked_bytes, two node_time_clocksource_*_info families

The pg_ families in that list have one series each, labelled supabase_identifier, service_type=postgresql and server; the pgbouncer_ families are labelled database and user. No series carried a wait-event label or a state label (0 of 766 for each); 20 carried a mode label. There is no pg_locks family and no count of pg_stat_activity rows by state.

OB06f induced two waits. One session held a row lock (select ... for update) while a second session’s update waited; then one held an ACCESS EXCLUSIVE table lock while a second session’s select waited. Each wait was held 130 s, with 30 s of baseline before, a 30 s gap between and a 30 s tail after. The module scraped the endpoint and read the waiting session’s pg_stat_activity row every 10 s: 36 scrapes, with the waiter in Lock:transactionid:active (row) or Lock:relation:active (table) in 24 of them.

pg_stat_activity_xact_runtime in ob06-run3, by scrape time from the start of OB06f, copied from the artifact:

Scrape atPhaseValue
0-50 sbaseline to 20 s, row wait from 30 s0
60-120 srow wait30.083627
130-150 srow wait100.132932
160-190 sgap to 180 s, table wait from 190 s100.132932
200-260 stable wait10.031888
270-320 stable wait to 310 s, tail from 320 s80.0403
330-350 stail0

It was the only pg_ series among the 22 matching families that moved with the waits; the other pg_ series were not tracked one by one. The pgbouncer, PostgREST pool and Auth wait series stayed 0 throughout, and the conflict and deadlock counters did not change. The node_pressure_* counters rose at every snapshot change, with or without a wait. At 10 s scrapes, the pg_ values changed 5 times, 60 to 70 s apart, in ob06-run3 (the node_ values the same); ob06-run2, which counted both prefixes together, saw 8 changes 10 to 70 s apart.

The answer is no: the endpoint exposes neither wait events nor lock waits. A blocked session shows up only as an old open transaction in pg_stat_activity_xact_runtime, which here was the lock holder’s age, and a value can outlive the state it describes: 100.132932 was still served at 160-190 s, after the row wait had ended. That a long idle-in-transaction session would give the same reading is an inference; it was not run. Not measured: other compute sizes, many waiters, Realtime or Storage connections waiting on locks.

The docs describe restoring to a new project from the Dashboard’s database backups page.11 OB06g read the OpenAPI documents in both runs and created no clone. It found no restore-to-new-project path in a path-name and create-body scan of 115 v1 and 36 v2 paths: no path name mentions clone, and the create-project body has no source, backup or restore field (db_pass, name, organization_id, organization_slug, plan, region, region_selection, kps_enabled, desired_instance_size, template_url, release_channel, postgres_engine, high_availability). The restore paths restore in place (/v1/projects/{ref}/restore, database/backups/restore, restore-pitr, restore-point, undo), and POST /v2/projects/{ref}/backups/download takes a backup id and the type project_backup_file_url. Branch creation takes with_data. GET /v1/projects/{ref}/clone answered 404, and the Dashboard’s clone route answered a personal access token with 401 Unsupported access token, the same answer as RP01d on 2026-10-10. Whether a with_data branch or the backup-download route gives a usable copy was not measured. What a Dashboard clone carries over is in Supabase disaster recovery tiers.

No disagreement below has been filed upstream.

ClaimDocumentedMeasured 2026-10-28
Impersonated role settings with a privileged contextapplied after GRANT SET ON PARAMETER on Postgres 15 and later8the grant was refused to postgres; only the authenticator setting reached requests
Metrics endpoint credentialsuser service_role, a Secret API key as the password9the secret key and the legacy service_role JWT both answered 200
Metrics refresh cadencescrape every 60 s to match it10pg_ values changed 60 to 70 s apart at 10 s scrapes (ob06-run3)

ClaimMeasured or documentedHow it was checked
2.111.0 loses traceparent in a bundle with no node_modules; 2.112.0 and 2.117.3 do notmeasured, run1 to run3, n = 1 per cellrecording fetch at the client boundary, five packagings per release
Registry fetch explains the Bun 2.111.0 difference when auto-install is left oninferencethe setting changed the outcome; the fetch was not observed
Default propagation targets include the client’s base URL hostsource read, one releasegetDefaultPropagationTargets in 2.117.3 dist/index.mjs; the behaviour was also seen on a self-hosted-shaped base URL
edge_logs.trace_id on 38 of 38 rows; other sources 0measured, run3, one projectper-source counts of rows with a trace_id
5 failing requests in each of two buckets fire the lint, at 1% to 100%measured, 13 firings, n = 1 per arm except where repeatedrunAdvisors polling every 30 s, per-arm projects
Lint cached about 60 smeasured, exploratory, not archived10 s polling on one project; the archived 30 s runs show 86-91 s steps
Ingestion lag at most 30 smeasured, one 36-minute window, 15 s resolutionmarker per minute, first-seen time
Notebook push and pull behaviourmeasured, run2, one project, one passsupabase CLI 2.120.0 against the v2 notebooks API
v2 log-drain route 403measured on a Pro org and a Team org (neither artifact published)GET and POST, PAT (personal access token)
Only the authenticator setting of pg_stat_statements.track_planning reaches Data API queriesmeasured, ob06-run2 and ob06-run3, one Micro project eachthe setting’s value read inside the request through an RPC, and plans in pg_stat_statements, per arm and role
PostgREST skips the per-role settings because the parameter’s context needs privilegesinferencethe PostgREST docs plus the refused grant set on parameter; no PostgREST log was read
No wait-event, state or pg_locks series on the metrics endpointmeasured, one scrape in each of 2 runsfamily and label scan
The only pg_ series among the 22 matching families that moved during a lock wait was pg_stat_activity_xact_runtime; values change 60 to 70 s apartmeasured, 2 runs, two 130 s waits each, 36 scrapes at 10 sper-series values against the waiting session’s pg_stat_activity row
No restore-to-new-project path found in a path-name and create-body scan of 115 v1 and 36 v2 pathsmeasured, 2 runs, 2026-10-28; no clone createdOpenAPI path and create-body scan, GET /v1/projects/{ref}/clone 404, Dashboard route 401 with a PAT
Documented behaviours cited abovedocumented, read 2026-10-10 (OB06 pages 2026-10-28)the footnoted pages

Every number is one region, one plan tier and an idle project, so the advisor count threshold and the lag ceiling describe this probe’s load and are no platform contract. The firing rule in particular has no run above 600 requests per bucket. The OB06 rows are also one compute size, Micro, and one PostgREST release whose version was not recorded.


PracticeEvidenceModule
Use supabase-js 2.112.0 or later where a bundle runs without node_modules.2.111.0 sent no traceparent and no warning from a Bun bundle and an esbuild bundle with no node_modules; 2.112.0 and 2.117.3 sent in all five packagings.OB01, run1 to run3
Import @supabase/supabase-js/tracing on 2.112.0 and later.Without it: no headers and one console.warn.OB01a
Query edge_logs for the trace_id attribute.38 of 38 rows carry one; the client’s value matched in 14 of 14 sending variants.OB01b, run3
Log the received traceparent in the function when function_logs must carry it.function_edge_logs 0 of 39 and function_logs 0 of 78 rows carried a trace id; function ids appeared only in the function’s own console.log message.OB01d, OB01e
Send at least 5 failing 5xx in each of two aligned buckets when testing an advisor.Fired at 5 of 100, 5 of 250 and 6 of 600; did not fire at 4 of 100, 3 of 100 (twice), 1 of 5 or on a 404-only load.OB02
Do not expect an advisor from one failing bucket.A single failing bucket, or failures in only one of two buckets, did not fire.OB02
Poll advisors/run no faster than every 60 s.The returned observed_at stepped 86-91 s at 30 s polling and 62-64 s at 10 s polling; the 10 s figure is exploratory, not archived.OB02
Expect a lint 35-66 s after the second bucket and a tail up to 367 s.Detection 35-66 s at 30 s polling; gone 306-367 s after the last failure.OB02
Name columns in logs queries and filter on source.select * answered a backend error in an exploratory query (not archived); the logs guide records the same trap.OB03, exploratory
Size a logs poller for a ceiling of 30 s at 15 s polling.36 of 36 markers per source returned, max 30 s; one 36-minute window, so no lag below 15 s was resolved.OB03
Read supabase notebooks push output for its result; the exit code carries none.Exit 0 on every call, including “Left alone” for a notebook with no local file.OB05, run2
Expect to set up log drains by hand until the v2 route accepts the organisation; Dashboard setup was not tried here.GET and POST /v2/projects/{ref}/analytics/log-drains answered 403 on a Pro and a Team org; v1 has no route.OB04, one pass
Set pg_stat_statements.track_planning on authenticator for Data API planning stats.Only that arm gave plans 3 for 3 GETs as each of anon, authenticated and service_role, with on inside the request; set on anon, authenticated, service_role or postgres it read off and plans 0. Planning statistics then cover every Data API role.OB06c, ob06-run2 and ob06-run3
Send NOTIFY pgrst, 'reload config' and end authenticator backends after the ALTER.Every arm did both (2 backends terminated per arm) before it read the setting; a role setting applies at login only, and set role read off (OB06b). Leaving the old connections in place was not run.OB06b, OB06c
Never set track_planning per API role, by alter database, postgres-config or CLI.Per-role settings never reached a request. alter database and grant set on parameter were refused; PUT answered 400 Unrecognized key, the CLI exited 1.OB06a, OB06c, OB06d
Sample pg_stat_activity for wait_event_type Lock to find lock waits.The waiting session read Lock:transactionid:active or Lock:relation:active in 24 of 36 samples at 10 s; no metrics series carries a wait-event or state label and there is no pg_locks family.OB06e, OB06f
Turn on log_lock_waits to log waits longer than deadlock_timeout.Not measured here. The Postgres docs describe it; log_lock_waits is a property of UpdatePostgresConfigBody in the v1 OpenAPI document (read 2026-10-28).none; documented
Read pg_stat_activity_xact_runtime as the oldest transaction’s age, not a lock signal.It rose during both waits (30.083627, 100.132932, 80.0403 in ob06-run3) and still read 100.132932 after the row wait ended. An idle-in-transaction session giving the same reading is inference.OB06f
Scrape the metrics endpoint every 60 s; faster scrapes repeat values.pg_ values changed 5 times, 60 to 70 s apart, across 36 scrapes at 10 s (ob06-run3); the docs say 60 s.OB06f
Restore to a new project from the Dashboard; no Management API route for it was found.None found in a path-name and create-body scan of 115 v1 and 36 v2 paths, no source field in create-project, GET /v1/projects/{ref}/clone 404, Dashboard clone route 401 with a PAT.OB06g, 2 runs

Each row links the redacted run artifacts published to out/, in run1, run2, run3 order where a module ran more than once (OB06 in ob06-run2, ob06-run3 order, both 2026-10-28); the figures are in the experiment’s RUNLOG.

  1. Supabase, “Client-side tracing,” Supabase Docs. https://supabase.com/docs/guides/observability/client-side-tracing ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  2. Supabase, “Health Check Advisors,” Supabase Changelog, 2026-09-18. https://supabase.com/changelog/50577-health-check-advisors ↩ ↩2

  3. Supabase, “Connect client traces to your logs,” Supabase Blog. https://supabase.com/blog/connect-client-traces-to-your-logs ↩ ↩2

  4. Supabase, “Log drains,” Supabase Docs. https://supabase.com/docs/guides/observability/log-drains ↩

  5. Supabase, “Log drains now available on Pro,” Supabase Blog. https://supabase.com/blog/log-drains-now-available-on-pro ↩

  6. Supabase, “Management API OpenAPI document (v1),” Supabase. https://api.supabase.com/api/v1-json ↩ ↩2

  7. PostgreSQL, “ALTER ROLE,” PostgreSQL 17 Documentation. https://www.postgresql.org/docs/17/sql-alterrole.html ↩

  8. PostgREST, “Transactions,” PostgREST Documentation. https://docs.postgrest.org/en/stable/references/transactions.html ↩ ↩2

  9. Supabase, “Metrics API,” Supabase Docs. https://supabase.com/docs/guides/observability/metrics ↩ ↩2

  10. Supabase, “Metrics API with Prometheus & Grafana (self-hosted),” Supabase Docs. https://supabase.com/docs/guides/observability/metrics/grafana-self-hosted ↩ ↩2

  11. Supabase, “Restore to a new project,” Supabase Docs. https://supabase.com/docs/guides/platform/clone-project ↩