1. Event schema
One row in api_requests, with the types used by the query made explicit.
- timestamp_utc
- Timestamp
- route_template
- Utf8
- status_code
- Int64
- latency_ms
- Float64
Choose fields, filters, and aggregations in Explore to build a table or chart. You can view the generated SQL and edit it in Query.
Outcomes
How it works
Confirm that fields contain the expected values and types before aggregating them. This catches instrumentation mistakes early.
Select an aggregation, numeric field, time bucket, and filters. The newest time bucket may still be receiving events.
Save charts you check regularly to a dashboard, or use them to create alerts. Open Query when you need multiple tables or CTEs.
Exploring structured events
Inspect event samples, apply filters, and chart the results in Explore.
Boundaries
Try the example
This example includes the schema, read-only SQL, and synthetic results. Use it to check how the query works. It does not measure customer results.
One row in api_requests, with the types used by the query made explicit.
Which API routes have the highest 5xx error rate with at least 20 requests?
SELECT
route_template,
COUNT(*) AS requests,
SUM(CASE WHEN status_code >= 500 THEN 1 ELSE 0 END) AS errors,
100.0 * SUM(CASE WHEN status_code >= 500 THEN 1 ELSE 0 END)
/ NULLIF(COUNT(*), 0) AS error_rate_pct
FROM api_requests
WHERE timestamp_utc >= now() - INTERVAL '24 hours'
GROUP BY route_template
HAVING COUNT(*) >= 20
ORDER BY error_rate_pct DESC
LIMIT 10;Checkout failed on 5 of 25 requests. Search failed on 1 of 25.
| route_template | requests | errors |
|---|---|---|
| /api/checkout | 25 | 5 |
| /api/search | 25 | 1 |
| /api/profile | 20 | 0 |
Capabilities
See the analysis
Rank API routes by 5xx error rate. Exclude routes with fewer than 20 requests so one failure does not dominate the results.
Open recipeFind unreliable jobs by comparing successful runs, retries, failures, and tail duration.
Open recipeAttribute model spend, tokens, request volume, and cost per request to product features.
Open recipeCustomer evidence
"Telemetry is one of the easiest ways to go from dumping in your data to actually understanding it."
Shayan Taslim, LogSnag
Read the customer story"Telemetry makes it super easy to track, analyze, and visualize what's going on in my business. It's the perfect mix of simple and powerful."
Namu Kang, Browserflow
Read the customer storyRelated capabilities
Use a focused prompt, send synthetic events, and verify the first useful query before expanding coverage.