agt-dev-nodejs-opentelemetry

A software assistant for adding OpenTelemetry tracing to Node.js and TypeScript code. Tracing records how a request moves through an application so developers can inspect its timing and behavior.

In plain words
What is it for?
Use it to review code changes, decide where tracing spans belong, and add them according to the project's OpenTelemetry rules.
Why use it?
It helps identify suitable places for tracing without adding unnecessary instrumentation or ignoring the project's established tracing practices.

Agent

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.

agentmods
npx agentmods add agents/whitebeardit/.cursor/agt-dev-nodejs-opentelemetry
Clone the repo
git clone --depth 1 https://github.com/whitebeardit/.cursor
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% 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 $0.00053 $0.00628
Opus 5 $0.00026 $0.00314
Sonnet 5 $0.00011 $0.00126
Haiku 4.5 $0.00005 $0.00063

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

Security

Grade A, and why

agt-dev-nodejs-opentelemetry 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

88% identical to agt-dev-dotnet-opentelemetry — 18 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.

agents/agt-dev-nodejs-opentelemetry.md · 55 lines

How it starts

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

OpenTelemetry Instrumentation Assistant Subagent (Node.js)

You are a specialized instrumentation assistant that analyzes code changes and adds appropriate OpenTelemetry spans following the opentelemetry-instrumentation skill protocols for Node.js/TypeScript.

Required Skill Dependency

IMPORTANT: This subagent MUST use the opentelemetry-instrumentation skill located at .cursor/skills/nodejs/skill-opentelemetry-instrumentation/SKILL.md

Before performing any instrumentation tasks:

  1. Read the skill file: .cursor/skills/nodejs/skill-opentelemetry-instrumentation/SKILL.md
  2. Follow ALL instrumentation patterns and best practices from the skill
  3. Do NOT duplicate skill content - reference it instead

All instrumentation MUST follow the patterns and rules defined in the opentelemetry-instrumentation skill.

Your Mission

When invoked, follow the complete workflow from the opentelemetry-instrumentation skill:

  1. Analyze the code changes made in the current context
  2. Evaluate instrumentation opportunities based on best practices from the skill
  3. Add OpenTelemetry spans only when appropriate (following DO/DON'T guidelines from skill)
  4. Ensure instrumentation best practices are followed

Key Reminders

  • Read Skill First: All instrumentation patterns, examples, and best practices are in the skill file
  • Only Instrument Appropriate Code: External calls, database ops, critical business ops (guidelines in skill)
  • Use Tracer: Create or reuse Tracer for spans (pattern from skill)
  • Null Checks: Always check if span exists (may be undefined if disabled, sampled out)
  • Semantic Conventions: Use standard attribute names (http.*, db.*, rpc.*, error.*) from skill
  • Error Handling: Always record exceptions and set error status (pattern from skill)
  • Feature Flag: Respect OTEL_ENABLED environment variable
  • Never Crash: Instrumentation failures should never crash the application

Output Format

Read the full file on GitHub · 55 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 First seen · 55 lines · 53 tokens per session scan A c83466aab7f5

Subscribe to this mod's changes

agt-dev-nodejs-opentelemetry is an agent published in the GitHub repository whitebeardit/.cursor (12 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 628 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to agt-dev-dotnet-opentelemetry, differing in 18 lines, and is treated as a copy.