Skip to main content
Monitoring gives you complete visibility into your production AI system. Every model call, tool invocation, and agent step is captured and surfaced in real-time dashboards.

Setup (3 minutes)

1

Install

2

Initialize

3

Instrument your AI client

That’s it. Every AI call through the instrumented client is now captured.

What gets tracked

Request metrics

Every model call automatically captures:

Dashboard views

The monitoring dashboard provides:
  • Request volume — Total requests over time with error overlay
  • Token usage — Input/output/total tokens with daily/hourly granularity
  • Cost tracking — Running cost estimates by model and time period
  • Latency percentiles — p50, p95, p99 response times
  • Error rates — Error count and rate by type (rate limit, auth, timeout, etc.)
  • Provider & model split — Traffic distribution across providers and models

Example: track a chatbot

In the dashboard you’ll see:
  • Model: gemini-2.0-flash
  • Operation: sendMessage
  • Input/output tokens
  • Response time
  • Cost estimate

Example: track streaming responses

Streaming calls capture additional metrics:

Example: custom event callback

React to every captured event in your own code — log to your system, trigger alerts, or forward to your analytics pipeline:

Tracing: visualize agent workflows

For multi-step AI workflows (agents, RAG pipelines, chains), tracing builds a span tree so you can see exactly what happened:
In the tracing view you’ll see:
Each span shows inputs, outputs, duration, tokens, cost, and errors — making it easy to pinpoint bottlenecks or failures.

Privacy controls

Control what data is sent to the dashboard:

Graceful shutdown

Flush all pending events before your process exits: