Files
Danny WhiteandJoshen Lim 2372aa0fc2 feat(studio): show Warehouse query latency (#53570)
## Problem

The Warehouse report shows query activity and outcomes, but not how long
queries spend waiting or running.

## Solution

Add query-duration percentiles, worker-acquisition waits and
successful-query duration. Durations are shown in milliseconds, with
missing measurements kept distinct from zero. Latency loads separately
so a failed request does not hide query activity.

| After |
| --- |
| <img width="1678" height="1796" alt="CleanShot 2026-11-18 at 12 28
53@2x"
src="https://github.com/user-attachments/assets/48c6545e-8f2d-40c4-aa3c-977dd2ae6479"
/> |
| _New latency section._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-report-latency-supabase.vercel.app)
with a staging project that has Warehouse access
([example](https://studio-staging-git-dnywh-warehouse-report-latency-supabase.vercel.app/dashboard/project/yirnfrgkxmnqgexikhfc/observability/warehouse?its=2026-11-18T00%3A23%3A52.901Z&ite=2026-11-18T01%3A23%3A52.901Z&isHelper=true&helperText=Last+60+minutes)),
then go to **Observability > Warehouse**.
2. Check **Query duration**, **Time waiting for a worker** and
**Successful query duration** below the query charts. Hover the lines to
compare timing measurements.
3. Change the date range and refresh. Both query activity and latency
should update.
4. Check the selected period without measurements. Empty or unavailable
data must remain distinct from measured zeroes.

Shared ChartLine accessibility changes are separate in #53706.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-20 15:46:02 +11:00
..