Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

AI & agents

AI Telemetry: Build Scalable Monitoring for Claude & LLM Systems

Learn how to build a scalable AI agent telemetry system with monitoring, logging, and observability. Track token usage, latency, and performance across Claude and LLM systems.

· · 3 min read

Building Generic Telemetry for AI Agents (Claude & LLM Systems)

As organizations build more AI-powered agents, AI agent telemetry becomes a critical part of the overall architecture. Whether the agent is used for calendar assistance, document search, reporting, customer support, or workflow automation, having a strong telemetry system for AI agents ensures better visibility, performance tracking, and cost control.

Each agent may use different tools and logic, but the telemetry architecture should remain consistent across all implementations.

Why Telemetry for AI Agents Matters

Without a proper AI model monitoring system, teams struggle to answer key questions:

  • How many times was the AI model called?
  • What is the total token usage and cost?
  • How long does each response take (latency)?
  • Which tool calls are failing?
  • Are there any policy violations or blocked responses?

A structured AI observability system helps track usage, identify failures, and improve performance across all agents.

If every agent logs data differently, reporting becomes complex. A consistent telemetry data pipeline design solves this problem by standardizing how data is captured and stored.

High-Level Telemetry Architecture

A scalable AI agent telemetry architecture follows a simple flow:

  • User interacts with the agent (web app, API, Teams, etc.)
  • The agent processes the request and calls the AI model
  • External tools may be triggered (search, database, APIs)
  • A centralized telemetry system captures all events

This telemetry includes:

  • Token usage monitoring
  • Latency monitoring
  • Tool activity tracking
  • Error logging

All data is stored in a structured system like SQL Server telemetry storage, making it easy to query and analyze.

Core Design Principle: Standardization + Metadata

The key to building generic telemetry for AI agents is simple:

👉 Use a common logging structure for all agents

👉 Store agent-specific details as metadata

Every agent should log:

  • Agent name, type, and version
  • User ID and session ID
  • Model name
  • Event type and status
  • Latency and token usage
  • Tool name and tool status
  • Error messages and policy results

This approach ensures consistent AI logging best practices while allowing flexibility.

Standard Event Types for Better Observability

To improve AI observability, define common event types such as:

  • Agent request started
  • AI model call started
  • AI model call completed
  • AI model call failed
  • Tool call started/completed/failed
  • Policy check completed
  • Response returned

This makes AI usage tracking and reporting much easier across different agents.

Centralized Telemetry with SQL Server

Using SQL Server telemetry storage provides a scalable and structured approach:

  • All agents write to a single telemetry table
  • Common fields remain fixed
  • A flexible metadata field stores custom values

This avoids constant schema changes and supports long-term scalability.

Monitoring with Streamlit Dashboard

Once telemetry data is stored, tools like Streamlit monitoring dashboard can visualize:

  • Total AI calls
  • Token consumption
  • Average latency
  • Failed requests
  • Tool usage and failures
  • Cost per agent

This improves AI agent performance monitoring and helps teams make data-driven decisions.

What Should Not Be Logged

While AI logging and monitoring are important, avoid storing sensitive data:

  • API keys or credentials
  • Full user prompts or responses
  • Personally identifiable information
  • Confidential documents

Instead, log safer alternatives:

  • Prompt/response hashes
  • Redacted content
  • File counts and types
  • Tool names and results

This ensures secure and compliant AI telemetry systems.

Conclusion

A well-designed AI agent telemetry system is essential for scaling modern AI applications.

The best approach includes:

  • A centralized telemetry system
  • Standard event types
  • Consistent logging structure
  • Metadata-driven flexibility

This setup improves AI observability, performance monitoring, and cost tracking, making it easier to manage and scale multiple AI agents efficiently.

← All articles

Case studies

AI Consulting in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • In production

    Hours → minutes

    Food manufacturing

    AI Consulting

    Document intake agent for a national food cooperative

    A Copilot Studio agent reads certificates of analysis as they arrive in the quality team's inbox, extracts 14 fields with AI Builder, checks them, files the PDF in SharePoint and posts a summary in Teams. Fields it is unsure about go to a person instead of being guessed.

    • Hours of daily filing down to minutes
    • 14 fields per document, validated
  • Internal project

    2,000 → 50 a day

    Public-sector sales

    AI Consulting

    Procurement triage on a local 30B model

    Logs in to five government procurement portals each morning, reads about 2,000 listings, parses the bid documents and emails a short list of the 20 to 50 worth quoting. Every model call runs on one desktop AI system in our office.

    • 2,000 listings down to about 50 a day
    • 11× faster than a 120B model, same verdicts
  • Internal project

    Cited answers

    Food & beverage compliance

    AI Consulting

    FDA regulatory research agent built on Claude

    Food and beverage teams spend hours each week checking FDA sites for regulatory changes. This agent ingests FDA guidance, approval letters and labeling requirements, answers questions with citations to the source passage, compares documents and drafts summaries for review. Built on Claude Sonnet.

    • Every answer cites its source
    • Submission summaries drafted for review

Keep reading

All AI & agents articles

Want an agent like this working on your own data?

Book a 30-minute AI readiness call. We will look at one workflow and tell you what is automatable, what is not, and what the data needs first.