elastic avatar

Observability Edot Dotnet Instrument

This gets the Elastic Distribution of OpenTelemetry wired into your .NET app for automatic tracing, metrics, and logs. You add two NuGet packages, call AddElasticOpenTelemetry() in your startup code, and set three environment variables: service name, the OTLP endpoint (not the APM server URL), and auth headers. The skill is pretty explicit about what not to do, which is helpful since mixing EDOT with the classic Elastic APM agent will cause problems, and manually configuring providers defeats the point of the automatic setup. Reach for this when you're starting fresh with observability on a .NET service, not retrofitting an existing agent.

GitHub stars
503
last updated
Jun 1, 2026

Install

$ npx -y skills add elastic/agent-skills --skill observability-edot-dotnet-instrument --agent claude-code

Installs into .claude/skills of the current project.

Files

This gets the Elastic Distribution of OpenTelemetry wired into your .NET app for automatic tracing, metrics, and logs. You add two NuGet packages, call AddElasticOpenTelemetry() in your startup code, and set three environment variables: service name, the OTLP endpoint (not the APM server URL), and auth headers. The skill is pretty explicit about what not to do, which is helpful since mixing EDOT with the classic Elastic APM agent will cause problems, and manually configuring providers defeats the point of the automatic setup. Reach for this when you're starting fresh with observability on a .NET service, not retrofitting an existing agent.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/elastic/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, .NET & C#
License
Apache-2.0
First seen
Jun 11, 2026

More from elastic/agent-skills

All 57
1elastic avatarobservability-edot-dotnet-migrateelastic/agent-skills>0skills.sh installs
2elastic avatarobservability-edot-java-instrumentelastic/agent-skills>0skills.sh installs
3elastic avatarobservability-edot-java-migrateelastic/agent-skills>0skills.sh installs
4elastic avatarobservability-edot-python-instrumentelastic/agent-skills>0skills.sh installs
5elastic avatarobservability-edot-python-migrateelastic/agent-skills>0skills.sh installs
6elastic avatarobservability-logs-searchelastic/agent-skills>0skills.sh installs