otel-js

otel-js is a skill for Claude Code from ollygarden/opentelemetry-agent-skills. It costs 94 tokens per session (676 once invoked), scanned A, original, Apache-2.0.

A reference guide for adding OpenTelemetry to Node.js, JavaScript, and TypeScript services. It covers collecting traces, metrics, and logs about application behavior.

In plain words
What is it for?
Use it to configure the NodeSDK, automatic instrumentation, declarative YAML settings, and ESM or CommonJS imports.
Why use it?
It helps resolve setup differences between Node.js module systems and explains how to configure automatic instrumentation or the SDK.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the opentelemetry-agent-skills plugin — 19 skills shipped together

Good fit Use it to configure the NodeSDK, automatic instrumentation, declarative YAML settings, and ESM or CommonJS imports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ollygarden/opentelemetry-agent-skills/otel-js
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 ollygarden/opentelemetry-agent-skills --skill otel-js
Clone the repo
git clone --depth 1 https://github.com/ollygarden/opentelemetry-agent-skills

Made for: Claude Code.

Or install opentelemetry-agent-skills, the plugin that ships this one along with the rest of its 19 skills.

Its marketplace also offers this one on its own, as the plugin otel-js/plugin install otel-js after adding the marketplace above.

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 otel-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-js/github.svg)](https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-js)
Your own site
<a href="https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-js"><img src="https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-js/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 otel-js

Your own site · 80×15
<a href="https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-js"><img src="https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 676 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00094 $0.00676
Opus 5 $0.00047 $0.00338
Sonnet 5 $0.00019 $0.00135
Haiku 4.5 $0.00009 $0.00068

Measured 7d ago against content hash 23e00277d3f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

otel-js 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 7d 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/otel-js/SKILL.md · 38 lines

How it starts

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

OpenTelemetry in Node.js

Entry point for OpenTelemetry mechanics in Node.js / JavaScript / TypeScript services. Load a reference below based on the task; each reference is self-contained.

References

File Use when
references/declarative-setup.md Configuring the SDK via declarative YAML: OTEL_CONFIG_FILE, @opentelemetry/configuration, @opentelemetry/sdk-node, ESM/CJS import order, v2.0 migration.

Sources of Truth

For YAML schema details, fetch the upstream sources listed in the otel-declarative-config skill. For Node.js-specific facts:

Fact Fetch
Latest @opentelemetry/configuration npm view @opentelemetry/configuration version
Latest @opentelemetry/sdk-node npm view @opentelemetry/sdk-node version
Latest @opentelemetry/auto-instrumentations-node npm view @opentelemetry/auto-instrumentations-node version
Released package status / breaking changes (2.11.0 / 0.222.0) WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/packages/configuration/README.md and WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/packages/opentelemetry-sdk-node/README.md
Experimental CHANGELOG through 0.222.0 WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/experimental/CHANGELOG.md
ESM / CJS preload mechanics at 2.11.0 WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js/v2.11.0/doc/esm-support.md
Auto-instrumentations register entry point at 0.80.0 WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-js-contrib/auto-instrumentations-node-v0.80.0/packages/auto-instrumentations-node/README.md
Node.js getting-started docs WebFetch https://opentelemetry.io/docs/languages/js/getting-started/nodejs/

Cross-References

  • Schema-level facts: otel-declarative-config skill (language-agnostic YAML schema sources).
  • SDK version selection across languages: otel-sdk-versions skill.
  • Semantic conventions lookup: otel-semantic-conventions skill.

Read the full file on GitHub · 38 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago Changed 23e00277d3f7
  2. 11d ago First seen · 38 lines · 94 tokens per session scan A aae319be808d

Subscribe to this mod's changes

otel-js is a skill published in the GitHub repository ollygarden/opentelemetry-agent-skills (97 stars, last pushed today), licensed Apache-2.0. It adds 94 tokens to every session and 676 once invoked, about $0.0005 per session on Opus 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-30.

Related

Other skills, from other repositories

frontmcp-observability

Use when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server. Covers zero-config OpenTelemetry distributed tracing across all flows; the this.telemetry API for custom spans, events, and attributes in tools, plugins, agents, and skills; structured JSON logging with trace correlation and…

agentfront/frontmcp · 177 tokens

opentelemetry

OpenTelemetry observability patterns: traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting.

bobmatnyc/claude-mpm-skills · 29 tokens

otel-fastapi-style

FastAPI OpenTelemetry style: native FastAPIInstrumentor, centralized observability init, Python decorators, OTLP logs, and LLM cost metrics.

superloglabs/skills · 35 tokens

otel-flask-style

Flask OpenTelemetry style: native FlaskInstrumentor, centralized observability init, Python decorators, OTLP logs, and LLM cost metrics.

superloglabs/skills · 34 tokens

otel-instrument-feature

Instrument any new feature, endpoint, route, handler, worker, job, CLI command, or user-facing flow with OpenTelemetry spans, metrics, and logs before it lands. Triggers on requests like 'add a new endpoint', 'implement X', 'create a handler for Y', 'build a job to Z', 'add this feature', 'wire up a new route', or any…

superloglabs/skills · 92 tokens

phoenix-observability

Open-source AI observability platform for LLM tracing, evaluation, and monitoring. Use when debugging LLM applications with detailed traces, running evaluations on datasets, or monitoring production AI systems with real-time insights.

davila7/claude-code-templates · 47 tokens