api-telemetry

api-telemetry is a skill for Claude Code, Codex from cyanheads/mcp-ts-core. It costs 98 tokens per session (12,639 once invoked), scanned A, a copy of api-telemetry, Apache-2.0.

Reference material for OpenTelemetry monitoring built into an MCP framework. OpenTelemetry is a standard way to collect traces, measurements, and logs about how software runs.

In plain words
What is it for?
Use it to enable telemetry export, add custom traces or measurements, investigate missing monitoring data, and understand request, tool, authentication, and session metrics.
Why use it?
It explains what is tracked automatically, how requests can be connected across logs and traces, and why telemetry may be missing in some runtimes.

Skill for Claude CodeCodex

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

Good fit Use it to enable telemetry export, add custom traces or measurements, investigate missing monitoring data, and understand request, tool, authentication, and session metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cyanheads/mcp-ts-core/api-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 cyanheads/mcp-ts-core --skill api-telemetry
Clone the repo
git clone --depth 1 https://github.com/cyanheads/mcp-ts-core

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 api-telemetry

README.md
[![agentmods](https://agentmods.dev/badge/skills/cyanheads/mcp-ts-core/api-telemetry/github.svg)](https://agentmods.dev/skills/cyanheads/mcp-ts-core/api-telemetry)
Your own site
<a href="https://agentmods.dev/skills/cyanheads/mcp-ts-core/api-telemetry"><img src="https://agentmods.dev/badge/skills/cyanheads/mcp-ts-core/api-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 api-telemetry

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyanheads/mcp-ts-core/api-telemetry"><img src="https://agentmods.dev/badge/skills/cyanheads/mcp-ts-core/api-telemetry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,639 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 100% copy Near-identical to another mod 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.00098 $0.12639
Opus 5.5 $0.00039 $0.05056
Sonnet 5.5 $0.00020 $0.02528
Haiku 4.5 $0.00010 $0.01264

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

Security

Grade A, and why

api-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 3d 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.

Origin

This is a copy

100% identical to api-telemetry — 43 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

framework-skills/api-telemetry/SKILL.md · 367 lines

How it starts

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

Overview

The framework auto-instruments every tool, resource, prompt, storage, LLM, speech, and graph call — each gets its own span and the standard counters/histograms. HTTP server requests pick up spans from HttpInstrumentation (all Node.js HTTP traffic, skips /healthz) plus httpInstrumentationMiddleware from @hono/otel on the MCP HTTP endpoint when installed (optional Tier 3 peer — bun add @hono/otel). On Bun, HttpInstrumentation silently no-ops and @hono/otel is the only HTTP coverage. Auth checks and session lifecycle are tracked as metrics only — auth decorates the active HTTP span with attributes, sessions emit counters.

requestId, traceId, and tenantId correlate automatically across spans, metrics, and logs. Framework log records carry traceId/spanId from the request context.

A handler's ctx.traceId / ctx.spanId name the execution span it runs in — tool_execution:<name> or resource_read:<name> — not the enclosing HTTP request span. Under HTTP the trace ID is the request's, so handler logs join to the request; the span ID is the child execution's, so they join to that span's attributes and duration. On stdio, where no transport span exists, both are still populated from the execution span the framework opens. Both are undefined when telemetry is disabled: the non-recording span a disabled pipeline produces carries all-zero IDs, and the framework reports no correlation rather than IDs that correlate to nothing.

For the helper API surface (withSpan, createCounter, createHistogram, buildTraceparent, etc.) — see the api-utils skill, Telemetry section. This skill is the catalog of what is emitted; that one is the reference for how to emit your own.


Enabling export

OTel is off by default. OTEL_ENABLED=true alone does nothing — you also need an OTLP endpoint. Without an endpoint the SDK is configured but no OTel data leaves the process. Usage reports are a separate channel, off unless both the server and the user opt in.

Read the full file on GitHub · 367 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. 3d ago Changed · +2 lines dd397505102b
  2. 4d ago Changed · +31 lines · +13 tokens per session 1b7bc6b2592a
  3. 8d ago Changed e123642308d9
  4. 28d ago Changed bbcb8aef6c6c
  5. 1mo ago Changed · +2 lines 492cfd2e1644
  6. 1mo ago Changed ea069c934f21
  7. 1mo ago Changed 200c03c32481
  8. 1mo ago Changed 8fd13da56906
  9. 1mo ago Changed 237f5724cf33
  10. 1mo ago First seen · 332 lines · 85 tokens per session scan A a4b9dfdea378

Subscribe to this mod's changes

api-telemetry is a skill published in the GitHub repository cyanheads/mcp-ts-core (154 stars, last pushed 3d ago), licensed Apache-2.0. It adds 98 tokens to every session and 12,639 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to api-telemetry, differing in 43 lines, and is treated as a copy.

Related

api-telemetry compared with skills from other repositories

api-telemetry next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-telemetrycyanheads/mcp-ts-coreSkill1543d agoApache-2.0A98Claude Code, Codex
gw1-build-assistantGraphmaxer/gw1-mcpSkill14d agoMITA127Claude Code, Codex
orgx-initiative-opsuseorgx/orgx-mcpSkill22d agononeA31Cursor
orgx-runtime-reportinguseorgx/orgx-mcpSkill22d agononeA32Cursor
orgx-deviation-reportinguseorgx/orgx-mcpSkill22d agononeA33Cursor
agentforge-compareyedanyagamiai-cmd/openclaw-mcp-serversSkill48mo agoMITA168Claude Code, Codex
openclaw-color-paletteyedanyagamiai-cmd/openclaw-mcp-serversSkill48mo agoMITA207Claude Code, Codex