Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Telemetry Endpoints

The Prism Engine serves telemetry queries over S3 Parquet data via Apache DataFusion.

Query log records.

GET /v1/telemetry/logs?from=2024-01-01T00:00:00Z&to=2024-01-07T00:00:00Z&limit=100
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO860124h agoStart time
toISO8601nowEnd time
session_idstringFilter to a single session
developer_idstringFilter to a single developer
limitinteger100Max records (max 1000)
offsetinteger0Pagination offset

Query metric data points. Same parameters as /logs.

Query trace spans. Same parameters as /logs.

Aggregated statistics grouped by time, session, or developer.

GET /v1/telemetry/stats?from=2024-01-01T00:00:00Z&to=2024-01-07T00:00:00Z&group_by=day&signal=logs
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO86017 days agoStart time
toISO8601nowEnd time
group_byenumhourOne of hour, day, session_id, developer_id. Invalid values return 400.
signalenumlogsOne of logs, metrics, traces.

Query per-turn telemetry for a specific set of prompts or sessions (body-driven to avoid long query strings). Used by the dashboard’s session explorer to hydrate turn-by-turn detail.

POST /v1/telemetry/per-turn
Authorization: Bearer gck_your_key
Content-Type: application/json
{
"session_id": "",
"prompt_ids": [""]
}

Analytics with in-memory caching — tools used, errors, efficiency metrics.

GET /v1/telemetry/analytics?from=2024-01-01T00:00:00Z&to=2024-01-07T00:00:00Z&tz_offset=-300
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO86017 days agoStart time
toISO8601nowEnd time
tz_offsetinteger0Timezone offset in minutes east of UTC. Shifts event timestamps before bucketing so day/hour aggregates reflect local time. Example: 540 for KST, -300 for EST.

Results are cached per org_id:from:to key for fast repeated queries.

  • All telemetry endpoints use DataFusion with predicate pushdown for efficient S3 Parquet scanning.
  • Data is partitioned by year/month/day/hour (Hive partitioning) — narrower time ranges are faster.
  • Results are scoped to the authenticated organization.