AI SDK Telemetry

Live analytics from Upstash Redis Search aggregations — last 24 hours.

Telemetry in code
Add the integration to your AI SDK calls, then read it back — every chart here is one Redis Search aggregation.
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
import { redisSearchTelemetry } from "@/src/telemetry";
await generateText({
model: openai("gpt-4o-mini"),
prompt,
experimental_telemetry: {
isEnabled: true,
functionId: "weather-bot",
integrations: [redisSearchTelemetry()],
},
});
Index
Active
nameai-telemetry
typejson
fields11
generations0
tool calls0
Generate telemetry
Run the AI SDK with the integration wired in — events land in the index and the charts update.
OR
Runs 5 sample prompts.

Set OPENAI_API_KEY in the backend to enable data ingestion.

Generations

0

0 in last 30 min

Total tokens

0

0 in · 0 out

Tool calls

0

0 failed

Avg tokens / gen

0

across all generations

Tool latency
p50 / p95 / p99 per tool (ms), from $percentiles.
No tool-call latency yet. Run a generation that uses a tool.
Tokens per agent
Average tokens from a $stats aggregation grouped by agent (functionId).
No generations in the last 24h.
Finish reasons
Generation outcomes grouped with $terms.
No generations recorded yet.
Recent generations
Ordered by ts DESC — no sorted sets.

No generations in the last 24h.