dotnet-observability

Integrate OpenTelemetry traces, metrics, and logs into .NET applications.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-observability-rudironsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-observability
Source: https://github.com/rudironsoni/dotnet-agent-harness/tree/main/.rulesync/skills/dotnet-observability
Command: npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-observability-rudironsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of understanding and monitoring .NET application behavior in production by integrating comprehensive observability features.

Core Features & Use Cases

  • OpenTelemetry Integration: Sets up traces, metrics, and logs using the industry standard.
  • Health Checks: Implements robust liveness and readiness checks for reliable deployment.
  • Structured Logging: Ensures logs are rich and easily searchable, correlating with traces.
  • Use Case: Integrate OpenTelemetry into your ASP.NET Core application to automatically capture incoming requests, outgoing HTTP calls, and application metrics, sending them to a central collector for real-time monitoring and alerting.

Quick Start

Configure your ASP.NET Core application to export OpenTelemetry traces and metrics using the OTLP exporter.

Frequently Asked Questions about dotnet-observability

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

FAQPage Schema
How do I add OpenTelemetry tracing and metrics to an ASP.NET Core application?

Add OpenTelemetry tracing and metrics to ASP.NET Core by integrating the OpenTelemetry SDK, enabling automatic instrumentation for incoming requests and outgoing HTTP calls, and configuring the OTLP exporter to send telemetry data to a central collector.

What is structured logging with trace context correlation in .NET?

Structured logging with trace context correlation in .NET ensures logs are easily searchable and linked to specific traces, enabling comprehensive observability by correlating log entries with distributed trace data for accurate production monitoring.

Does this observability approach support custom metrics via System.Diagnostics.Metrics?

Yes, this observability approach supports custom metrics via System.Diagnostics.Metrics, allowing you to define and capture specific application performance indicators alongside standard ASP.NET Core instrumentation data.

How do I configure OTLP export endpoints and resource attributes for .NET observability?

Configure OTLP export endpoints and resource attributes for .NET observability by setting environment variables, which is the preferred method for defining the collector endpoint and resource attributes for OpenTelemetry telemetry.

How do I implement health checks for liveness and readiness in .NET apps?

Implement health checks for liveness and readiness in .NET apps to ensure reliable deployment and monitoring, distinguishing between application availability and readiness to handle traffic for robust production observability.