configuring-opentelemetry-dotnet

Configure OpenTelemetry for distributed tracing and logging in .NET ASP.NET Core apps.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ojrojas/AgentsInstructions --skill configuring-opentelemetry-dotnet-ojrojas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuring-opentelemetry-dotnet
Source: https://github.com/ojrojas/AgentsInstructions/tree/main/.claude/skills/dotnet-aspnet/skills/configuring-opentelemetry-dotnet
Command: npx skills add https://github.com/ojrojas/AgentsInstructions --skill configuring-opentelemetry-dotnet-ojrojas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires OpenTelemetry.Extensions.Hosting, OpenTelemetry.Instrumentation.AspNetCore, OpenTelemetry.Exporter.OpenTelemetryProtocol, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers integrate and configure OpenTelemetry for distributed tracing, metrics, and logging in ASP.NET Core applications, enabling robust observability.

Core Features & Use Cases

  • Distributed Tracing: Track request flows across multiple services and microservices.
  • Metrics Collection: Collect detailed performance metrics and statistics.
  • Logging: Integrate logging with OpenTelemetry for trace and span context propagation.
  • Use Case: For a web API developed in .NET ASP.NET Core, use this Skill to monitor application performance and identify bottlenecks or failures.

Quick Start

Apply OpenTelemetry for observability in your .NET ASP.NET Core application by adding necessary NuGet packages as outlined in the documentation.

Frequently Asked Questions about configuring-opentelemetry-dotnet

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

FAQPage Schema
How do I set up OpenTelemetry distributed tracing in an ASP.NET Core application?

To set up OpenTelemetry distributed tracing in ASP.NET Core, you must configure the OpenTelemetry SDK and add specific NuGet packages for hosting, ASP.NET Core instrumentation, and OTLP exporting to track request flows across services.

What NuGet packages are required to configure OpenTelemetry in .NET Core?

Configuring OpenTelemetry in .NET Core requires the OpenTelemetry.Extensions.Hosting, OpenTelemetry.Instrumentation.AspNetCore, and OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet packages to properly instrument and export telemetry data.

How does OpenTelemetry logging integration work with .NET Core services?

OpenTelemetry logging integration works by propagating trace and span context within your .NET Core services, allowing you to correlate application logs with distributed traces to identify performance bottlenecks and failures.

Can I collect performance metrics from my .NET web API using OpenTelemetry?

Yes, you can collect performance metrics from a .NET web API using OpenTelemetry by instrumenting your ASP.NET Core application to gather detailed statistics and monitor application performance effectively.

What is the best way to monitor microservices observability in .NET ASP.NET Core?

The best way to achieve microservices observability in .NET ASP.NET Core is configuring OpenTelemetry to unify distributed tracing, metrics collection, and logging, enabling you to track request flows and identify bottlenecks.

Why do I need OpenTelemetry exporters for my ASP.NET Core observability setup?

You need OpenTelemetry exporters in your ASP.NET Core observability setup to transmit the collected traces, metrics, and logs from your instrumented .NET application to a backend system for analysis and monitoring.