Tooluck logoTooluck
SKILL.md

opentelemetry-net-instrumentation

Agent skill fromAaronontheweb/dotnet-skills

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

How to install opentelemetry-net-instrumentation

install opentelemetry-net-instrumentation
# install the dotnet-skills pack with the skills CLI
npx skills add Aaronontheweb/dotnet-skills

# or add only this skill to Claude Code: copy the folder

skills/opentelementry-dotnet-instrumentation/

# into

~/.claude/skills/opentelementry-dotnet-instrumentation/ (all projects)

.claude/skills/opentelementry-dotnet-instrumentation/ (one project)

skills/opentelementry-dotnet-instrumentation/SKILL.md

MITFull file
1# OpenTelemetry .NET Instrumentation Skill
2
3## When to Use
4
5- Adding OpenTelemetry instrumentation to .NET code (traces, metrics, logs)
6- Creating or modifying ActivitySources, Meters, or ILogger usage
7- Setting up the OpenTelemetry SDK, resources, exporters, or sampling
8- Reviewing telemetry implementations for spec compliance
9- Optimizing instrumentation performance
10- Designing telemetry APIs that become part of the public surface
11- Implementing context propagation across service boundaries
12
13## Architecture: .NET Is Different
14
15**CRITICAL**: The .NET OpenTelemetry implementation is fundamentally different from other platforms. .NET provides tracing, metrics, and logging APIs **in the framework itself**.
16That means **OTel does not provide a separate instrumentation API** — it uses the built-in .NET APIs and acts as the collection/export layer.
17
18### The Three Built-in .NET APIs (Primary — Zero Dependencies)
19
20| Signal | .NET Framework API | Namespace |
21|--------|-------------------|-----------|
22| **Tracing** | `ActivitySource` / `Activity` | `System.Diagnostics` |
23| **Metrics** | `Meter` / `Counter<T>` / `Histogram<T>` / etc. | `System.Diagnostics.Metrics` |
24| **Logging** | `ILogger<T>` | `Microsoft.Extensions.Logging` |
25
26These are **the primary and only APIs** library authors should use for instrumentation.
27They ship with the .NET runtime — **no NuGet packages required**.
28
29### The OTel Collection/Export Layer (Secondary — Application Root Only)
30…

Excerpt shown under the repository's MIT license.

More skills in dotnet-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates