Telemetry
Telemetry SQL Cookbook

Run structured-event SQL in your browser

Choose a reproducible database-reliability fixture, edit its query, and inspect the real result without an account. DuckDB runs locally in WebAssembly; the fixture and SQL stay in this browser.

Reviewed by the Telemetry product team on . Read-only query guardrails, synthetic fixtures, browser execution, and database reliability definitions. Editorial ownership

13 deterministic fixtures with typed event contracts.
One SELECT or WITH statement; writes, extensions, and external file reads are rejected.
Synthetic examples only. Never paste credentials, customer data, or raw query parameters into a shared browser.

34 synthetic input rows in database_query_events. Timestamps shift into the current query window when the fixture loads.

Results are capped at 500 rows. The included fixtures are synthetic and intentionally small.

No fixture or query is sent to Telemetry.

Published expected result

Query output and visualization

Query result

Slow-query rate by fingerprint

The invoice update is slow on most executions, while the catalog query remains below the illustrative one-second threshold.

query_fingerprintservicedatabase_nameexecutionsslow_executionsslow_query_rate_pctaverage_duration_msmaximum_duration_ms
UPDATE invoices SET status = ?billing-workerapp_production108801,2501,700
SELECT checkout WITH line_itemscheckout-apiapp_production126501,012.51,600
SELECT products BY categorycatalog-apicatalog_production1200330440

Synthetic example output. Run the query against your own event schema and thresholds before using it for operational decisions.

What this playground proves—and what it does not

The browser runner proves that the selected read-only query executes against its included rows and produces the displayed result. The browser downloads the versioned DuckDB runtime from jsDelivr only after you run a query; the SQL and fixture are not sent with that request. Telemetry recipes are separately planned with Apache DataFusion, the engine used by Telemetry. DuckDB and DataFusion are distinct SQL engines, so validate any edited syntax with the DataFusion SQL reference before using it in production.