observability

Implement structured logging, metrics, tracing, and health checks in . .NET using OpenTelemetry and ILogger<T>.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill observability-diegoknsk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability
Source: https://github.com/diegoknsk/video-processing-engine-video-management-lambda/tree/main/.cursor/skills/observability
Command: npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill observability-diegoknsk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach to implementing observability in .NET applications, covering logging, metrics, tracing, and health checks to improve diagnostics and reliability.

Core Features & Use Cases

  • Structured logging with ILogger<T> and placeholder usage to ensure high-performance, filterable logs.
  • OpenTelemetry integration for distributed tracing and metrics collection across services.
  • Health checks and readiness probes to monitor dependencies (DB, external APIs, caches) and expose a health endpoint.
  • Guidance on robust instrumentation, error handling, and safe logging practices for sensitive data.

Quick Start

Enable structured logging and health checks in your .NET project by following the guidelines above.

Frequently Asked Questions about observability

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

FAQPage Schema
How do I implement structured logging in .NET to improve application observability?

Structured logging in .NET relies on ILogger<T> dependency injection with placeholder usage to generate high-performance, filterable logs. This enables reliable diagnostics and performance monitoring across backend services while maintaining safe logging practices for sensitive data.

What is the best way to set up distributed tracing in .NET applications?

Distributed tracing in .NET is best achieved through OpenTelemetry integration, which collects traces and metrics across multiple services. This provides deep visibility into distributed systems and enables reliable fault detection for complex backend service architectures.

How do I configure health checks and readiness probes for .NET backend services?

Health checks in .NET monitor dependencies like databases, external APIs, and caches, then expose a dedicated health endpoint. This allows distributed systems to reliably report readiness and detect faults in critical backend service components.

Does OpenTelemetry work with ILogger<T> for collecting metrics in .NET?

Yes, OpenTelemetry works alongside ILogger<T> in .NET to provide comprehensive observability. While ILogger<T> handles structured logging, OpenTelemetry integration manages distributed tracing and metrics collection across services for full system diagnostics.

How do I prevent logging sensitive data when implementing observability in .NET?

Preventing sensitive data exposure in .NET observability requires following safe logging practices with ILogger<T> and robust instrumentation. This includes using structured placeholders correctly and applying error handling guidance to protect sensitive information in diagnostics.