dotnet-observability

Configure health checks and OpenTelemetry logging for ASP.NET Core services.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-observability-tassosgomes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-observability
Source: https://github.com/tassosgomes/poc-iam-service/tree/main/.github/skills/csharp/dotnet-observability
Command: npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-observability-tassosgomes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Observability and monitoring for .NET C# and ASP.NET Core applications, including health checks, structured logging, tracing, and metrics, to enable proactive incident response and reliable deployments.

Core Features & Use Cases

  • Health checks with AspNetCore.Diagnostics.HealthChecks (basic app health, EF context, external HTTP endpoints, Redis, and custom checks).
  • Logging with OpenTelemetry integration and scoped correlation for end-to-end tracing.
  • Kubernetes readiness, liveness, and startup probes guidance and example configurations for resilient deployments.

Quick Start

Configure health checks and logging in your ASP.NET Core app and expose the /health endpoint for Kubernetes probes.

Frequently Asked Questions about dotnet-observability

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

FAQPage Schema
How do I add health checks to an ASP.NET Core service for Kubernetes readiness and liveness probes?

To add health checks for Kubernetes probes in ASP.NET Core, expose a /health endpoint using AspNetCore.Diagnostics.HealthChecks. This provides granular health statuses for app dependencies like Redis, EF context, and external HTTP endpoints.

What is OpenTelemetry structured logging in .NET and how does it trace requests?

OpenTelemetry structured logging in .NET provides scoped correlation for end-to-end tracing. It monitors application performance and request flows by attaching contextual data to logs, enabling proactive incident response across distributed ASP.NET Core services.

Can I monitor external HTTP endpoints and Redis dependencies with ASP.NET Core health checks?

Yes, you can monitor external HTTP endpoints and Redis dependencies using AspNetCore.Diagnostics.HealthChecks. The Skill configures custom checks to report granular health statuses for these external services within your ASP.NET Core application.

What's the best way to configure environment-based observability for .NET apps in Kubernetes?

The best way to configure environment-based observability for .NET apps in Kubernetes is integrating OpenTelemetry logging and AspNetCore.Diagnostics.HealthChecks. This setup supplies startup, readiness, and liveness probes with environment-specific contextual data.

Why do I need structured logging and tracing for my .NET application?

You need structured logging and tracing for .NET applications to enable proactive incident response and reliable deployments. It provides scoped correlation and contextual data to monitor performance and trace request flows across ASP.NET Core services.