dotnet-observability

Integrate OpenTelemetry traces, metrics, and structured logging into .NET applications.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-observability-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-observability
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/dotnet-observability
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-observability-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to integrate comprehensive observability into their .NET applications, providing deep insights into application performance and behavior.

Core Features & Use Cases

  • OpenTelemetry Integration: Set up traces, metrics, and logs using OpenTelemetry standards.
  • Health Checks: Implement liveness and readiness checks for robust deployment and orchestration.
  • Structured Logging: Configure advanced structured logging with Microsoft.Extensions.Logging or Serilog.
  • Use Case: Monitor a live ASP.NET Core API by collecting request traces, application metrics, and structured logs, then use health checks to ensure it's ready to receive traffic.

Quick Start

Configure OpenTelemetry with ASP.NET Core instrumentation and OTLP export for traces and metrics.

Frequently Asked Questions about dotnet-observability

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

FAQPage Schema
How do I set up OpenTelemetry traces and metrics in an ASP.NET Core API?

To set up OpenTelemetry traces and metrics in an ASP.NET Core API, you configure the OpenTelemetry SDK with ASP.NET Core instrumentation and an OTLP exporter. This enables deep insights into application performance by collecting and exporting request traces and application metrics.

Does .NET observability support Serilog for structured logging?

Yes, .NET observability supports Serilog for structured logging. You can configure advanced structured logging using either Serilog or Microsoft.Extensions.Logging to capture detailed application behavior and export it via OpenTelemetry standards.

What is the best way to implement health checks for .NET application readiness?

The best way to implement .NET health checks is by configuring liveness and readiness probes. This ensures robust deployment and orchestration by verifying if the application is live and ready to receive network traffic.

How do I export .NET application metrics and traces using OTLP?

You export .NET application metrics and traces using OTLP by configuring the OpenTelemetry export settings within your application. This setup supports production deployments by sending custom instrumented traces and metrics to an OTLP-compatible backend.

Can I create custom metric and trace instrumentation in .NET?

Yes, you can create custom metric and trace instrumentation in .NET. The integration uses OpenTelemetry standards to manually capture specific application performance metrics and traces beyond the default ASP.NET Core instrumentation.

Why do I need both liveness and readiness health checks in .NET?

You need both liveness and readiness health checks in .NET to support robust deployment and orchestration. Liveness checks verify the application is running, while readiness checks ensure it is fully prepared to receive traffic without causing errors.