agt-dev-dotnet-opentelemetry

agt-dev-dotnet-opentelemetry is an agent for Claude Code from whitebeardit/.cursor. It costs 47 tokens per session (622 once invoked), scanned A, original, MIT.

A .NET coding assistant that reviews code changes and adds OpenTelemetry tracing where appropriate. OpenTelemetry is a standard way to record how requests move through an application.

In plain words
What is it for?
Use it to identify useful tracing points and add distributed-tracing spans to changed .NET code.
Why use it?
It helps make application behavior observable across services while following the project’s required tracing rules.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

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-dotnet-opentelemetry
Clone the repo
git clone --depth 1 https://github.com/whitebeardit/.cursor

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/whitebeardit/.cursor/agt-dev-dotnet-opentelemetry.svg)](https://agentmods.dev/agents/whitebeardit/.cursor/agt-dev-dotnet-opentelemetry)
Your own site
<a href="https://agentmods.dev/agents/whitebeardit/.cursor/agt-dev-dotnet-opentelemetry"><img src="https://agentmods.dev/badge/agents/whitebeardit/.cursor/agt-dev-dotnet-opentelemetry.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00047 $0.00622
Opus 5 $0.00023 $0.00311
Sonnet 5 $0.00009 $0.00124
Haiku 4.5 $0.00005 $0.00062

Measured 6d ago against content hash 47c1e86142fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

agt-dev-dotnet-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 6d 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

Copies of this mod

1 near-identical copy found in the catalogue:

agents/agt-dev-dotnet-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 (.NET)

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

Required Skill Dependency

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

Before performing any instrumentation tasks:

  1. Read the skill file: .cursor/skills/dotnet/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 ActivitySource: Create or reuse ActivitySource for spans (pattern from skill)
  • Null Checks: Always check activity != null (may be null if disabled, sampled out)
  • Semantic Conventions: Use standard tag 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

After analyzing and adding instrumentation, provide:

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. 6d ago First seen · 55 lines · 47 tokens per session scan A 47c1e86142fd

Subscribe to this mod's changes

agt-dev-dotnet-opentelemetry is an agent published in the GitHub repository whitebeardit/.cursor (12 stars, last pushed 6mo ago), licensed MIT. It adds 47 tokens to every session and 622 once invoked, about $0.0002 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.