logging-monitoring

Implement structured logging, tracing, and metrics for ASP.NET Core services.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/jnPiyush/AI-Squad --skill logging-monitoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging-monitoring
Source: https://github.com/jnPiyush/AI-Squad/tree/main/ai_squad/skills/logging-monitoring
Command: npx skills add https://github.com/jnPiyush/AI-Squad --skill logging-monitoring

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive production observability by implementing structured logging, distributed tracing, and metrics for applications.

Core Features & Use Cases

  • Structured logging with Serilog for JSON-formatted logs.
  • Distributed tracing via OpenTelemetry for end-to-end visibility.
  • Metrics collection with Prometheus exposure and optional dashboards.
  • Use Case: Deploy in a .NET Core web API to get correlated logs, traces, and metrics across services.

Quick Start

Install the required packages (Serilog.AspNetCore, Serilog.Sinks.Console, Serilog.Sinks.File, Serilog.Formatting.Json, OpenTelemetry; Prometheus) and initialize the configuration in your startup to enable logging, tracing, and metrics collection.

Frequently Asked Questions about logging-monitoring

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

FAQPage Schema
How do I implement structured logging and distributed tracing in an ASP.NET Core API?

To implement structured logging and distributed tracing in an ASP.NET Core API, configure Serilog for JSON logging and OpenTelemetry for tracing. This enables correlated logs and traces across backend services.

What is the best way to expose Prometheus metrics in a .NET Core web API?

The best way to expose Prometheus metrics in a .NET Core web API is to integrate OpenTelemetry metrics exporters. This enables reliable performance monitoring and optional dashboard visualization for your deployments.

Do I need Serilog and OpenTelemetry to set up production observability for ASP.NET Core?

Yes, setting up production observability for ASP.NET Core requires Serilog and OpenTelemetry integration. Serilog handles structured JSON logging while OpenTelemetry provides distributed tracing and metrics collection.

How does OpenTelemetry integrate with Serilog for telemetry collection?

OpenTelemetry integrates with Serilog by combining distributed tracing and metrics collection with structured JSON logging. This combination provides comprehensive production observability and correlated telemetry across services.

Can I configure health checks and performance monitoring across .NET Core deployments?

Yes, you can configure health checks and performance monitoring across .NET Core deployments. This is achieved by integrating OpenTelemetry and Prometheus to ensure reliable telemetry and application health visibility.