Files
dotnet__skills/plugins/dotnet-aspnet
Mukund Raghav Sharma (Moko) 665c39e957 Add configuring-opentelemetry-dotnet skill (#268)
* Add configuring-opentelemetry-dotnet skill (+8.1% eval, near-miss)

Teaches OpenTelemetry SDK configuration in ASP.NET Core: package selection,
AddOpenTelemetry with tracing/metrics/logging, custom ActivitySource and
Meter creation, OTLP exporter setup, and context propagation.

Eval results: +8.1% improvement (threshold: 10%, near-miss)
Includes eval.yaml with OTel setup scenario + negative test.

* Sharpen eval.yaml: add custom-spans-invisible pain-point and name-matching rubric emphasis

* Migrate configuring-opentelemetry-dotnet to plugins/ directory structure

* Move OpenTelemetry skill to new dotnet-aspnet plugin, address review feedback

- Move skill from plugins/dotnet-diag to new plugins/dotnet-aspnet plugin
- Create dotnet-aspnet plugin.json
- Fix SKILL.md frontmatter: remove code fence wrapper so YAML metadata parses
- Fix undefined 'order' variable in ProcessOrderAsync example
- Move SqlClient/Runtime instrumentation to clearly marked optional sections
- Add missing using directives (System.Diagnostics, OpenTelemetry.Context.Propagation)
- Handle null Activity.Current in context propagation snippet
- Use IMeterFactory via DI instead of static Meter per official guidance
- Add OpenTelemetry.Instrumentation.Http to eval rubric package list
- Simplify eval prompt to be more natural/generalized
- Update CODEOWNERS: add dotnet-aspnet plugin entries, remove old dotnet-diag entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Configure metrics OTLP exporter endpoint explicitly to match tracing config

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address round 2 review: logging endpoint, marketplace, RecordException using, ActivitySource in propagation, HttpClient pitfall

- Configure logging OTLP exporter endpoint explicitly for consistency
- Add dotnet-aspnet to both marketplace.json files
- Add 'using OpenTelemetry.Trace' for RecordException extension method
- Declare ActivitySource in context propagation snippet
- Fix HttpClient instrumentation pitfall (works with new HttpClient() too)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Clarify logging package source and add ActivitySource registration reminder

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add @dotnet/aspnet team to skill CODEOWNERS entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add dotnet-aspnet to README table, make propagation ActivitySource static

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add expect_activation:false, IMeterFactory using, clarify OTLP exporter scope

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add OtlpExporter using directive, clarify OTLP package covers logging

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Remove Prometheus from OTLP claim, add OTLP exporter assertion to eval

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Clarify Jaeger is traces-only, document logging package provenance

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix eval: increase timeout, reject tools, rewrite prompt as explanation-only

- Scenario 1: rewrite prompt to ask for code explanation (not file
  modification), add reject_tools to prevent bash/edit overhead,
  increase timeout 120s->360s, update rubric wording
- Scenario 2: add reject_tools to eliminate tool-overhead noise

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Improve OTel skill evals and address review feedback

- Remove redundant per-skill CODEOWNERS lines (ViktorHofer feedback)
- Add SetResourceBuilder + ParseStateValues to SKILL.md Step 3 (logging provider gap)
- Rewrite eval scenarios: 2 targeted positive scenarios testing real skill gaps
- Remove noisy negative activation scenario (high variance, -21.5% drag)
- Eval results: +14.2% improvement (threshold: 10%), overfitting 0.10 (low)
  Scenario 1: 3.0/5 -> 5.0/5, Scenario 2: 3.8/5 -> 5.0/5

* Add propagate-trace-context scenario to OTel evals (+25.6%)

Third scenario tests trace context propagation across message queues,
where the base model scores 3.2/5 and skill-enhanced scores 5.0/5.

Removed metrics and debug scenarios that baseline already aced (5.0/5)
which only added token cost without measurable improvement.

Final: 3 scenarios, +25.6% improvement, overfitting 0.09 (low)

* Remove duplicate dotnet-aspnet CODEOWNERS entries (L69-70 shadowed by L86-87)

* Use @dotnet/aspnet team alias in CODEOWNERS for wider reach

* Addressed feedback

---------

Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Viktor Hofer <7412651+ViktorHofer@users.noreply.github.com>
2026-04-07 03:32:05 -07:00
..