1. Event contract
One row in api_requests, with the types used by the query made explicit.
- timestamp_utc
- Timestamp
- route_template
- Utf8
- latency_ms
- Float64
- status_code
- Int64
Run DataFusion SQL over recent and historical event data, save important queries, export larger results asynchronously, and use the output in dashboards or downstream systems.
Outcomes
How it works
Write down the operational or product question before selecting columns. A focused question produces a query that can be interpreted and maintained.
Check volume, nulls, time windows, denominators, and unexpected groups. SQL can execute successfully and still answer the wrong question.
Turn recurring analysis into a named query, dashboard widget, export, or alert so the team does not recreate it during every incident.
Writing and running SQL in Telemetry
A short capture of the real query editor, autocomplete, result table, and chart workflow.
Boundaries
Inspectable proof path
This example uses a declared schema, read-only SQL, and deterministic synthetic results. It demonstrates the workflow without presenting sample data as a customer benchmark.
One row in api_requests, with the types used by the query made explicit.
Which endpoints have the worst tail latency?
SELECT
route_template,
COUNT(*) AS requests,
approx_percentile_cont(latency_ms, 0.50) AS p50_ms,
approx_percentile_cont(latency_ms, 0.95) AS p95_ms,
approx_percentile_cont(latency_ms, 0.99) AS p99_ms
FROM api_requests
WHERE timestamp_utc >= now() - INTERVAL '24 hours'
AND status_code < 500
GROUP BY route_template
HAVING COUNT(*) >= 50
ORDER BY p95_ms DESC
LIMIT 10;Export requests have the slowest tail and the largest gap between typical and worst-case performance.
| route_template | requests | p50_ms |
|---|---|---|
| /api/reports/export | 50 | 800 |
| /api/projects/:id/sync | 50 | 320 |
| /api/search | 50 | 120 |
Capabilities
See the analysis
Compare median and tail latency by endpoint with DataFusion-compatible percentile SQL.
Open recipeGroup users by first activity week and measure the percentage returning in later weeks.
Open recipeJoin feature events to upgrade events and rank behaviors that occur before paid conversion.
Open recipeCustomer evidence
Related capabilities
Explore
Shared dashboards
Threshold alerts
Use a focused prompt, send synthetic events, and verify the first useful query before expanding coverage.