Telemetry
Integration guide

OpenAI Agent Telemetry

Log OpenAI agent runs, tool calls, model usage, latency, cost, and final outcomes with structured events.

Useful for
  • AI agent observability
  • LLM cost tracking
  • Tool-call debugging

Snippet

Start with one structured event

Add this shape where the workflow completes, fails, or retries. Then build the dashboard from real fields.

openai-agents

OpenAI Agent Telemetry event

javascript
await telemetry.log("agent_tool_called", {
  agent_name: "support_agent",
  model: "gpt-4.1",
  tool_name: "lookup_order",
  status: "success",
  latency_ms: 842,
  retry_count: 0,
  estimated_cost_usd: 0.018,
});

Templates to pair with this integration

More integrations