What problem does it solve?
This Skill helps .NET developers instrument applications with OpenTelemetry so traces, metrics, and logs are consistent and export reliably to an OTLP backend.
Core Features & Use Cases
- Unified observability setup: Configure traces, metrics, and logs with a single AddOpenTelemetry() approach and export with OTLP.
- Correct metric creation: Use IMeterFactory to create meters safely under DI to avoid leaks and lifetime issues.
- Production-friendly telemetry conventions: Set resources (service name/version), register custom ActivitySource and Meter instruments, use null-safe activities, and keep metric tag cardinality low.
- Aspire Dashboard integration: Point OTLP export to Aspire Dashboard for fast local validation of telemetry.
- Quick implementation patterns: Define counters/histograms/gauges and implement ActivitySource spans for custom business operations.
Quick Start
Tell the AI to generate a Program.cs OpenTelemetry setup for traces, metrics, and OTLP export using ActivitySource and IMeterFactory, including environment-variable configuration for OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME.