logging

Configure Serilog, OpenTelemetry, and health checks for .NET 10 observability.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/AlexanderRadevich/SportowyHub_clientApp --skill logging-alexanderradevich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging
Source: https://github.com/AlexanderRadevich/SportowyHub_clientApp/tree/main/.claude/skills/logging
Command: npx skills add https://github.com/AlexanderRadevich/SportowyHub_clientApp --skill logging-alexanderradevich

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive observability for .NET 10 applications, enabling developers to effectively monitor, debug, and understand their application's behavior in production.

Core Features & Use Cases

  • Structured Logging: Implements Serilog for robust, searchable log entries.
  • Distributed Tracing & Metrics: Integrates OpenTelemetry for tracking requests across services and monitoring system health.
  • Health Checks: Exposes endpoints for operational readiness checks.
  • Correlation IDs: Ensures requests can be traced across the entire system.
  • Use Case: When an error occurs in a microservices architecture, this Skill allows you to trace the problematic request from its origin through all involved services, pinpointing the exact location and cause of the failure.

Quick Start

Configure Serilog logging in your .NET 10 application using the provided Program.cs example.

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?

Structured logging and distributed tracing in .NET 10 are implemented by integrating Serilog for searchable log entries and the OpenTelemetry SDK to track requests across services.

What is the best way to trace a failed request across microservices in .NET?

The best way to trace a failed request across microservices is using correlation IDs and OpenTelemetry distributed tracing to pinpoint the exact failure location from origin to destination.

Does this observability setup support both development and production environments?

Observability setup supports both development and production environments, enabling application behavior monitoring, operational readiness checks, and debugging across different deployment contexts.

How do I add health check endpoints to my .NET 10 application?

Health check endpoints are added to .NET 10 applications by integrating health check middleware, which exposes operational readiness checks for monitoring system health.

Why do I need correlation IDs for monitoring application behavior?

Correlation IDs are needed for monitoring application behavior because they ensure individual requests can be traced across the entire distributed system during debugging.

Can I use Serilog with OpenTelemetry metrics in the same .NET project?

Serilog and OpenTelemetry metrics can be used together in the same .NET project to provide comprehensive observability combining robust structured logs with system health monitoring.