agentops-telemetry

agentops-telemetry is a skill for Claude Code, Codex from MLOps-Courses/agentops-open-course. It costs 83 tokens per session (625 once invoked), scanned A, original, MIT.

An observability setup for an AI agent using OpenTelemetry, a standard way to record connected application work. It records traces, metrics, and logs for model calls, tool calls, timing, tokens, and errors while leaving prompts and responses out by default.

In plain words
What is it for?
Use it to connect an agent to systems such as Tempo, Prometheus, Grafana, or Loki, correlate one request’s work, and export privacy-conscious telemetry through an OpenTelemetry Collector.
Why use it?
It makes production agent behaviour easier to investigate when the final answer alone does not show which model or tool caused a delay or failure, while reducing the risk of storing user content.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect an agent to systems such as Tempo, Prometheus, Grafana, or Loki, correlate one request’s work, and export privacy-conscious telemetry through an OpenTelemetry Collector.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mlops-courses/agentops-open-course/agentops-telemetry
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MLOps-Courses/agentops-open-course --skill agentops-telemetry
Clone the repo
git clone --depth 1 https://github.com/MLOps-Courses/agentops-open-course

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentops-telemetry

README.md
[![agentmods](https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agentops-telemetry/github.svg)](https://agentmods.dev/skills/mlops-courses/agentops-open-course/agentops-telemetry)
Your own site
<a href="https://agentmods.dev/skills/mlops-courses/agentops-open-course/agentops-telemetry"><img src="https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agentops-telemetry/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentops-telemetry

Your own site · 80×15
<a href="https://agentmods.dev/skills/mlops-courses/agentops-open-course/agentops-telemetry"><img src="https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agentops-telemetry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 625 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00625
Opus 5.5 $0.00033 $0.00250
Sonnet 5.5 $0.00017 $0.00125
Haiku 4.5 $0.00008 $0.00063

Measured 29d ago against content hash 463f0d764e4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentops-telemetry scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agentops-telemetry/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentOps Telemetry

Trace an agent the way you trace a distributed system: one correlated record of model, tool, and application work per request — not a log line with the final answer. Make privacy the default, not an afterthought.

When to use

  • An agent misbehaves in production and you can only see the final output.
  • You need to correlate a model call, its tool calls, tokens, and latency for one turn.
  • You are exporting agent telemetry to MLflow (traces), Prometheus (metrics), or Loki (logs).
  • You must instrument without leaking user prompts or model responses into span storage.

Steps

  1. Emit spans over OpenTelemetry, using the GenAI semantic conventions. Name attributes with the standard gen_ai.* keys (gen_ai.operation.name, gen_ai.request.model, gen_ai.tool.name) and error.type so any OTel backend understands them.
  2. Keep content capture off by default. Traces should carry timing, model, tool, token, and status metadata — not the prompt or response body. Make capturing content an explicit, auditable opt-in with a stated privacy and retention cost.
  3. Export through the OTel Collector, then fan out. Send OTLP to a collector that routes traces to your trace store, derives request-count/latency metrics from spans (a spanmetrics connector), and ships logs to a log store — one pipeline, many backends.
  4. Redact and bound the log bridge. If you bridge application logs to OTLP, redact secrets/PII and cap size before export, and deduplicate noisy lines.
  5. Derive RED metrics from spans. Rate, Errors, Duration over a bounded label set (operation, model, error type) — never label by prompt, user, session, or trace id, which explodes cardinality.

Reference implementation

From the AgentOps Open Course (agent modules live under agents/python/src/agent/):

  • telemetry.py — OTLP setup and a redacting, bounded, dedup log bridge; content capture off by default.
  • infra/observability/ — OTel Collector, Prometheus, Grafana, Loki, and a shipped dashboard.
  • Course chapters 7.1. Tracing and 7.2. Monitoring.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · -1 lines · +15 tokens per session 463f0d764e4e
  2. 1mo ago First seen · 37 lines · 68 tokens per session scan A 6a8c15de9610

Subscribe to this mod's changes

agentops-telemetry is a skill published in the GitHub repository MLOps-Courses/agentops-open-course (2 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 625 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories