aaronontheweb avatar

OpenTelemetry NET Instrumentation

If you're adding OpenTelemetry to a .NET codebase, this skill helps you get the instrumentation right. It covers the practical stuff: ActivitySources, spans, metrics, naming conventions, and how to avoid tanking performance with telemetry overhead. Built by aaronontheweb, who knows the .NET observability space well. The guidance is especially useful if you're exposing telemetry as part of a public API, where you need to think through stability and design. With 981 GitHub stars and passing all security audits, it's a solid reference when you're beyond basic traces and need to instrument production code properly.

skills.sh installs
431
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill OpenTelemetry-NET-Instrumentation --agent claude-code

Installs into .claude/skills of the current project.

Files

OpenTelemetry .NET Instrumentation Skill

When to Use

  • Adding OpenTelemetry instrumentation to .NET code (traces, metrics, logs)
  • Creating or modifying ActivitySources, Meters, or ILogger usage
  • Setting up the OpenTelemetry SDK, resources, exporters, or sampling
  • Reviewing telemetry implementations for spec compliance
  • Optimizing instrumentation performance
  • Designing telemetry APIs that become part of the public surface
  • Implementing context propagation across service boundaries

Architecture: .NET Is Different

CRITICAL: The .NET OpenTelemetry implementation is fundamentally different from other platforms. .NET provides tracing, metrics, and logging APIs in the framework itself. That means OTel does not provide a separate instrumentation API — it uses the built-in .NET APIs and acts as the collection/export layer.

The Three Built-in .NET APIs (Primary — Zero Dependencies)

Sponsors

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
Backend & APIs, Code Review & Quality, Debugging, Design & UI/UX, .NET & C#
First seen
Jun 3, 2026

More from aaronontheweb/dotnet-skills

All 34
1hairyf avatartaurihairyf/skillsCross-platform app toolkit with Rust backend and WebView frontend. Use when building or maintaining Tauri apps, configuring IPC/security, or developing plugins.431skills.sh installs
2aj-geddes avatardata-migration-scriptsaj-geddes/useful-ai-promptsCreate safe, reversible database migration scripts with rollback capabilities, data validation, and zero-downtime deployments. Use when changing database schema430skills.sh installs
3vm0-ai avatarminimaxvm0-ai/vm0-skillsMiniMax API for AI models. Use when user mentions "MiniMax", "Chinese AI", or asks about MiniMax language models.430skills.sh installs
4aj-geddes avatarsynthetic-monitoringaj-geddes/useful-ai-promptsImplement synthetic monitoring and automated testing to simulate user behavior and detect issues before users. Use when creating end-to-end test scenarios, moni427skills.sh installs
5jezweb avatarflaskjezweb/claude-skillsBuild Python web apps with Flask using application factory pattern, Blueprints, and Flask-SQLAlchemy. Prevents 9 documented errors including stream_with_context426skills.sh installs
6aj-geddes avatarazure-functionsaj-geddes/useful-ai-promptsCreate serverless functions on Azure with triggers, bindings, authentication, and monitoring. Use for event-driven computing without managing infrastructure.424skills.sh installs