Agent skill

Otel Instrumentation

by atherio-danp in atherio-danp/cde-dotnetcc

Add or change OpenTelemetry tracing, metrics, and structured logging in the .NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation.

No licenceAuto-check: notesDevOps & Cloud

Install Otel Instrumentation

skills CLI
$ npx skills add atherio-danp/cde-dotnetcc --skill otel-instrumentation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install atherio-danp/cde-dotnetcc otel-instrumentation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/atherio-danp/cde-dotnetcc.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/otel-instrumentation .claude/skills/otel-instrumentation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
otel-instrumentation
GitHub stars
109
Token cost
~1.3k tokens
SKILL.md length
386 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
None found

At a glance

Add or change OpenTelemetry tracing, metrics, and structured logging in the .NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation.

  • Works in 6 steps: Packages (flag for approval) → Configure all three signals in… → Logs correlate automatically → …
  • Adding observability
  • SKILL.md covers 1. Packages (flag for approval), 2. Configure all three signals…, 3. Logs correlate automatically and 4. Custom spans, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Otel Instrumentation is an agent skill from atherio-danp/cde-dotnetcc. Add or change OpenTelemetry tracing, metrics, and structured logging in the .NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation. Use when adding observability, custom spans/metrics, or troubleshooting distributed traces.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Observability. It works with OpenTelemetry and .NET. The repository describes itself as: Claude Code harness for .NET developers.

When your agent uses it

  • Adding observability
  • Custom spans/metrics
  • Troubleshooting distributed traces

Example prompts

  • “/otel-instrumentation”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Packages (flag for approval)
  2. Configure all three signals in Program.cs (via Serena)
  3. Logs correlate automatically
  4. Custom spans
  5. Custom metrics — via IMeterFactory (DI), not new Meter()
  6. Context propagation across queues/pipeline stages

What it can do on your machine

Read from SKILL.md and the folder at commit c72a3f9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write
    • Bash
    • mcp__serena__initial_instructions
    • mcp__serena__get_symbols_overview
    • mcp__serena__find_symbol
    • mcp__serena__find_referencing_symbols

    …and 13 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Otel Instrumentation loads about 1.3k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 386 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_ove

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 386 words (~1,349 tokens).

“Adapted for our stack: OTLP → self-hosted Grafana/Tempo/Loki/Prometheus on your (EU) host — never Azure Monitor / Application Insights. EF Core on Npgsql (not SqlClient). C# (.cs) edits go through Serena (native Edit/Write on .cs is blocked). Follows docs/projectStandards/backend-architecture.md and…”

— opening of SKILL.md by atherio-danp
name
otel-instrumentation
allowed-tools
Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/otel-instrumentation of atherio-danp/cde-dotnetcc.

Open the folder on GitHubat commit c72a3f9

Compare with similar skills

Otel Instrumentation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Otel Instrumentation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Otel Instrumentation this skillatherio-danp/cde-dotnetcc109—~1.3kAutomated safety check: NotesNone
Dotnet Devopsnovotnyllc/dotnet-artisan232—~1.1kAutomated safety check: PassMIT
Aspire Service DefaultsAaronontheweb/dotnet-skills1.2k1 repos~2.6kAutomated safety check: PassMIT
LoggingResgrid/Core229—~1.4kAutomated safety check: PassApache-2.0
Opentelemetrycodewithmukesh/dotnet-claude-kit7561 repos~2.3kAutomated safety check: PassMIT
Serilogcodewithmukesh/dotnet-claude-kit7561 repos~2.4kAutomated safety check: PassMIT

Similar skills

  • Dotnet Devops

    novotnyllc/dotnet-artisan

    Configures .NET CI/CD pipelines (GitHub Actions with setup-dotnet, NuGet cache, reusable workflows; Azure DevOps with DotNetCoreCLI, templates, multi-stage), containerization (multi-stage…

    232 GitHub stars~1.1k tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Aspire Service Defaults

    Aaronontheweb/dotnet-skills

    Sets up a shared ServiceDefaults project for .NET Aspire apps that centralizes OpenTelemetry, health checks, HTTP resilience and service discovery for every service.

    1.2k GitHub starsUsed in 1 repo~2.6k tokens
    DevOps & CloudAuto-check passed
  • Logging

    Resgrid/Core

    Observability for .NET 10 applications. An agent skill from Resgrid/Core.

    229 GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Opentelemetry

    codewithmukesh/dotnet-claude-kit

    OpenTelemetry observability for .NET 10 applications. An agent skill from codewithmukesh/dotnet-claude-kit.

    756 GitHub starsUsed in 1 repo~2.3k tokens
    DevOps & CloudAuto-check passed
  • Serilog

    codewithmukesh/dotnet-claude-kit

    Structured logging with Serilog for .NET 10 applications. An agent skill from codewithmukesh/dotnet-claude-kit.

    756 GitHub starsUsed in 1 repo~2.4k tokens
    DevOps & CloudAuto-check passed
  • Logging

    codewithmukesh/dotnet-claude-kit

    Observability overview and glue for .NET 10: how the pieces fit together, plus the cross-cutting parts owned here — ASP.NET health check endpoints (/health), correlation IDs, and log-level strategy.

    756 GitHub stars~1.6k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed

More from atherio-danp/cde-dotnetcc

All 13 skills in this repo
  • MCP Csharp

    atherio-danp/cde-dotnetcc

    Create, debug, test, and publish MCP (Model Context Protocol) servers in C using the official ModelContextProtocol SDK — tools/prompts/resources, stdio vs HTTP transport, MapMcp hosting.

    109 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Microbenchmarking

    atherio-danp/cde-dotnetcc

    Create, run, configure, and interpret BenchmarkDotNet microbenchmarks in the .NET API — measure and compare approaches, runtime configs, or package versions.

    109 GitHub stars~979 tokensUpdated 2 mo ago
    Auto-check: notes
  • Dotnet AI Stack

    atherio-danp/cde-dotnetcc

    Choose and wire AI features in the .NET backend — LLM calls, agentic tool-calling/multi-step workflows, RAG/vector search, structured output, streaming.

    109 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Dotnet Performance Review

    atherio-danp/cde-dotnetcc

    Scan .NET/C code for performance anti-patterns (async, memory/strings, collections/LINQ, regex, serialization, I/O) with tiered severity, reporting findings without editing.

    109 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Efcore Patterns

    atherio-danp/cde-dotnetcc

    Add or change EF Core (Npgsql/PostgreSQL) persistence in the .NET backend — entities, EF configurations, repositories, queries, migrations.

    109 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Efcore Query Performance

    atherio-danp/cde-dotnetcc

    Optimize EF Core (Npgsql/PostgreSQL) queries in the .NET API — fix N+1, choose tracking modes, use compiled queries, split queries, and avoid translation traps.

    109 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check: notes

Categories

Questions about Otel Instrumentation

What does Otel Instrumentation do?

Add or change OpenTelemetry tracing, metrics, and structured logging in the .NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation. Otel Instrumentation is an agent skill from atherio-danp/cde-dotnetcc.NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation.

When should I use Otel Instrumentation?

Otel Instrumentation fits situations like: adding observability; custom spans/metrics; troubleshooting distributed traces.

How do I install Otel Instrumentation in Claude Code?

Run `npx skills add atherio-danp/cde-dotnetcc --skill otel-instrumentation -a claude-code`. Or copy the skill folder (.claude/skills/otel-instrumentation in atherio-danp/cde-dotnetcc) into .claude/skills/otel-instrumentation in your project. Claude Code loads it when a task matches its description.

How do I install Otel Instrumentation in Codex?

Run `npx skills add atherio-danp/cde-dotnetcc --skill otel-instrumentation -a codex`. Or copy the skill folder (.claude/skills/otel-instrumentation in atherio-danp/cde-dotnetcc) into .agents/skills/otel-instrumentation in your project. Codex loads it when a task matches its description.

Can I use Otel Instrumentation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add atherio-danp/cde-dotnetcc --skill otel-instrumentation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/otel-instrumentation, .gemini/skills/otel-instrumentation, .github/skills/otel-instrumentation and .opencode/skills/otel-instrumentation in your project.

What does Otel Instrumentation need to run?

SKILL.md names no scripts, command-line tools or credentials: Otel Instrumentation is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol.

Does Otel Instrumentation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Otel Instrumentation safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Otel Instrumentation use?

No licence was found for Otel Instrumentation or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Otel Instrumentation use?

About 1.3k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Otel Instrumentation?

Skills that share tags, products or a category with Otel Instrumentation: Dotnet Devops (novotnyllc/dotnet-artisan, 232 stars), Aspire Service Defaults (Aaronontheweb/dotnet-skills, 1.2k stars), Logging (Resgrid/Core, 229 stars) and Opentelemetry (codewithmukesh/dotnet-claude-kit, 756 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Otel Instrumentation?

atherio-danp (a GitHub user) maintains it in atherio-danp/cde-dotnetcc, which has 109 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on July 26, 2026.

Source: atherio-danp/cde-dotnetcc on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.