What problem does it solve?
This Skill solves the challenge of adding consistent, production-ready observability to .NET 10 applications so you can see traces, metrics, and logs across distributed systems.
Core Features & Use Cases
- Unified OpenTelemetry setup: Configure traces, metrics, and logs through a single AddOpenTelemetry() call, with OTLP export via UseOtlpExporter().
- Correct .NET metrics practices: Use IMeterFactory to create meters and prevent lifetime/leak issues in DI-based apps.
- Reliable tracing instrumentation: Use custom ActivitySource spans with null-safe tagging, and register sources so spans are not silently dropped.
- Operates cleanly by environment: Prefer OTEL_* environment variables to control telemetry routing and service identity without code changes.
- Use Cases: Distributed tracing (spans/ActivitySource), custom metrics (counters/histograms/gauges), local validation with Aspire Dashboard, and production export to an OTLP-compatible collector or backend.
Quick Start
Tell the AI to help you wire up OpenTelemetry in Program.cs with tracing, metrics, OTLP log export, and OTEL_* environment variables for service name and collector endpoint.