dotnet-production-readiness

Configure OpenTelemetry in ASP.NET Core to export traces, metrics, and logs to an OTLP collector.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-production-readiness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-production-readiness
Source: https://github.com/tassosgomes/poc-iam-service/tree/main/.github/skills/csharp/dotnet-production-readiness
Command: npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-production-readiness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes a production-readiness baseline for ASP.NET Core services by configuring observability with OpenTelemetry, ensuring structured logging, tracing, and metrics export across environments.

Core Features & Use Cases

  • OpenTelemetry integration for traces, metrics, and logs with OTLP export.
  • Environment-aware log levels and health checks to support stable deployments.
  • Manual ActivitySource usage for custom tracing and correlation in application code.
  • Sanitization guidelines and logging templates to prevent sensitive data leakage.

Quick Start

Configure OpenTelemetry in your ASP.NET Core project and verify traces, metrics, and logs are exported to your OTLP collector.

Frequently Asked Questions about dotnet-production-readiness

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

FAQPage Schema
How do I configure OpenTelemetry in an ASP.NET Core project for production readiness?

Configure OpenTelemetry in your ASP.NET Core project by setting up traces, metrics, and logs to export to your OTLP collector, ensuring environment-aware log levels and health checks for stable deployments.

What is the best way to export traces, metrics, and logs from ASP.NET Core to an OTLP collector?

The best way to export traces, metrics, and logs is by integrating OpenTelemetry in your ASP.NET Core project to send telemetry data directly to your OTLP collector, establishing a production-readiness baseline.

Does this OpenTelemetry integration support manual ActivitySource usage for custom tracing?

Yes, the OpenTelemetry integration supports manual ActivitySource usage, allowing you to implement custom tracing and correlation directly within your application code for granular observability.

How do I prevent sensitive data leakage when setting up structured logging in .NET?

You prevent sensitive data leakage by applying provided sanitization guidelines and logging templates when configuring structured logging in your .NET application, ensuring safe telemetry export.

Can I use environment-aware log levels with OpenTelemetry in ASP.NET Core?

Yes, you can configure environment-aware log levels alongside OpenTelemetry in ASP.NET Core, ensuring appropriate logging verbosity and health checks to support stable deployments across different environments.

Why does my ASP.NET Core app need OpenTelemetry for production readiness?

Your ASP.NET Core app needs OpenTelemetry for production readiness to establish a baseline of observability, ensuring structured logging, tracing, and metrics are exported consistently across environments.