Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dotnet/configuring-opentelemetry-dotnet
Configure OpenTelemetry distributed tracing, metrics, and logging in ASP.NET Core using the .NET OpenTelemetry SDK.
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
and 2 more in the full report
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to set up OpenTelemetry in my ASP.NET Core web application to collect distributed traces, metrics, and application logs, then export everything to an OTLP collector. Could you provide the CLI commands to install the required dependencies and show how to configure the full telemetry pipeline in Program.cs, including filtering out health check endpoints from tracing?
| Checked | Without skill | With skill |
|---|---|---|
| The Program.cs configuration uses UseOtlpExporter() once at the top level of AddOpenTelemetry(). | Missed | Passed |
| The pipeline configuration invokes WithLogging() within AddOpenTelemetry(). | Missed | Passed |
| The ASP.NET Core tracing options filter out request paths starting with /healthz. | Passed | Passed |
The instructions your model reads when the skill loads.
| Input | Required | Description |
|---|---|---|
| ASP.NET Core project | Yes | The application to instrument |
| Observability backend | No | Where to export: OTLP collector, Aspire dashboard, Jaeger (accepts OTLP natively) |
There are many OpenTelemetry NuGet packages. Install exactly these:
# Core SDK + ASP.NET Core instrumentation + logging integration
dotnet add package OpenTelemetry.Extensions.Hosting
dotnet add package OpenTelemetry.Instrumentation.AspNetCore
dotnet add package OpenTelemetry.Instrumentation.Http
# Exporter
dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol # OTLP exporter for traces, metrics, AND logs
# Optional — dev/local debugging only (do NOT include in production deployments)
# dotnet add package OpenTelemetry.Exporter.Console
test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.