logging-observability

Configure Serilog structured logging and correlation IDs in ASP.NET Core Razor Pages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need for robust logging and observability in ASP.NET Core applications, making it easier to troubleshoot issues, monitor application health, and trace requests in production environments.

Core Features & Use Cases

  • Structured Logging: Implements Serilog for consistent, machine-readable logs.
  • Correlation IDs: Ensures requests can be traced end-to-end across distributed systems.
  • Health Checks: Provides mechanisms to monitor application and dependency health.
  • OpenTelemetry: Integrates with distributed tracing and metrics collection.
  • Use Case: When deploying a new ASP.NET Core microservice, use this Skill to configure Serilog with structured logging, add correlation ID middleware, and set up basic health checks to ensure it's discoverable and monitorable.

Quick Start

Configure Serilog for structured logging and add correlation ID middleware to an ASP.NET Core application.

Frequently Asked Questions about logging-observability

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

FAQPage Schema
How do I configure Serilog for structured logging in ASP.NET Core?

Configure Serilog for structured logging in ASP.NET Core by implementing machine-readable log events, request logging, and diagnostic best practices to troubleshoot production issues. This ensures consistent, queryable application logs.

What is the best way to implement distributed tracing with OpenTelemetry in ASP.NET Core?

Implement distributed tracing with OpenTelemetry in ASP.NET Core by integrating metrics collection and tracing mechanisms. This enables end-to-end request monitoring across distributed systems to track application behavior.

How do I add correlation IDs to track requests in ASP.NET Core microservices?

Add correlation ID middleware to ASP.NET Core microservices to trace requests end-to-end across distributed systems. This ensures requests can be consistently tracked throughout your environment.

Does ASP.NET Core support built-in health checks for monitoring application dependencies?

ASP.NET Core supports health checks to monitor application and dependency health. You can configure mechanisms that ensure your microservice is discoverable and monitorable in production environments.

Can I use this observability setup for ASP.NET Core Razor Pages applications?

This observability setup implements production-grade logging patterns specifically for ASP.NET Core Razor Pages applications. It configures Serilog, correlation IDs, and health checks for robust monitoring.

When do I need OpenTelemetry integration for my ASP.NET Core application?

You need OpenTelemetry integration for ASP.NET Core applications when deploying distributed systems that require distributed tracing and metrics collection to monitor application health and trace requests.