opentelemetry

Configure OpenTelemetry in .NET apps for traces, metrics, and logs.

640|145|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill opentelemetry-codewithmukesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentelemetry
Source: https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/opentelemetry
Command: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill opentelemetry-codewithmukesh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenTelemetry integration for .NET apps to gather traces, metrics, and logs in a centralized observability stack.

Core Features & Use Cases

  • Full tracing, metrics, and logging with a single setup.
  • Custom ActivitySource, resource configuration, and Aspire Dashboard integration.
  • Works with OTLP exporters and DI-friendly patterns for .NET 10 apps.

Quick Start

Configure OpenTelemetry in your .NET app by calling AddOpenTelemetry() and UseOtlpExporter() in Program.cs to enable traces, metrics, and logs.

Frequently Asked Questions about opentelemetry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OpenTelemetry traces, metrics, and logs in a .NET application?

To configure OpenTelemetry in a .NET application, call AddOpenTelemetry() and UseOtlpExporter() in Program.cs. This single setup centralizes traces, metrics, and logs, applying to web APIs, background services, and distributed systems.

What is the best way to integrate OTLP export with .NET distributed systems?

The best way to integrate OTLP export in .NET distributed systems is using AddOpenTelemetry() with UseOtlpExporter() in your application startup. This enables centralized traces, metrics, and logs for comprehensive observability.

How does Aspire Dashboard integration work with .NET observability logging?

Aspire Dashboard integration works by configuring OpenTelemetry via AddOpenTelemetry() and setting resource attributes in your .NET startup. It centralizes tracing, metrics, and logging outputs for visual observability monitoring.

Can I use custom ActivitySource for tracing in .NET 10 background services?

Yes, you can use custom ActivitySource for tracing in .NET 10 background services. The setup supports DI-friendly patterns, allowing you to configure custom ActivitySource and resource attributes alongside OpenTelemetry logging and metrics.

Does OpenTelemetry support centralized observability for .NET web APIs?

Yes, OpenTelemetry supports centralized observability for .NET web APIs. By applying AddOpenTelemetry() and UseOtlpExporter() in Program.cs, you gather traces, metrics, and logs into a single observability stack.

Why do I need resource attributes when setting up OpenTelemetry in .NET?

You need resource attributes when setting up OpenTelemetry in .NET to identify and contextualize your application's telemetry data. Configuring these attributes in Program.cs ensures traces, metrics, and logs are correctly attributed within the observability stack.