logging

Implement structured logging, tracing, and health checks for .NET 10 applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fragmented observability across .NET apps leads to hard-to-trace issues; this skill provides structured logging, distributed tracing, health checks, and correlation IDs to unify telemetry.

Core Features & Use Cases

  • Structured logging with Serilog to produce query-friendly events.
  • Distributed tracing with OpenTelemetry that links requests across services.
  • Health checks with ready/live endpoints to verify service readiness.
  • Correlation IDs to trace requests through distributed systems.
  • OpenTelemetry metrics for runtime health and performance.

Quick Start

Configure Serilog, OpenTelemetry, and health checks in your ASP.NET Core project to begin structured logging, tracing, and telemetry immediately.

Frequently Asked Questions about logging

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

FAQPage Schema
How do I implement structured logging and distributed tracing in .NET 10 microservices?

Trace requests across distributed .NET services using correlation IDs. This skill configures middleware to pass correlation IDs through microservices, linking OpenTelemetry traces and Serilog structured logs for unified observability.

What is the best way to add health checks and telemetry to ASP.NET Core backend services?

Add health checks to ASP.NET Core backend services by configuring ready and live endpoints. Combined with OpenTelemetry metrics, this verifies service readiness and monitors runtime health and performance across your applications.

How do I set up Serilog and OpenTelemetry for .NET applications?

Set up Serilog and OpenTelemetry for .NET applications by applying provided middleware and example configurations. Serilog produces query-friendly structured logging events, while OpenTelemetry handles distributed tracing and metrics export.

Why do I need correlation IDs to trace requests through distributed .NET systems?

You need correlation IDs to trace requests through distributed .NET systems because they link logs and traces across service boundaries. This solves fragmented observability by unifying telemetry data into a single traceable request flow.

Can I use OpenTelemetry metrics for runtime health monitoring in .NET 10?

Yes, you can use OpenTelemetry metrics for runtime health monitoring in .NET 10. This skill applies OpenTelemetry patterns to capture runtime performance data, complementing structured logging and live health check endpoints.