microsoft-opentelemetry-setup
Installation
SKILL.md
Microsoft OpenTelemetry Distro — Greenfield Setup
When to Use
- User asks to "add observability" or "add telemetry" to a .NET app
- User wants to set up Agent 365, Azure Monitor, or OTLP export
- User is starting a new agent project and needs tracing
- User asks about
Microsoft.OpenTelemetrypackage
Procedure
1. Detect App Type
Scan the project to determine the app type:
- ASP.NET Core — has
WebApplication.CreateBuilder()orIHostApplicationBuilder→ use hosted pattern - Console / Background Service — no web host, uses
OpenTelemetrySdk.Create()→ use console pattern - Agent Framework — references
Microsoft.Agents.BuilderorMicrosoft.Agents.AI→ use Agent Framework pattern