elastic avatar

Observability Edot Python Instrument

This automates the setup of Elastic's OpenTelemetry Python agent for tracing, metrics, and logs collection. You install elastic-opentelemetry, run edot-bootstrap to detect and instrument your dependencies, then wrap your app entrypoint with opentelemetry-instrument. The configuration is straightforward but prescriptive: you need exactly three environment variables (service name, OTLP endpoint, and auth header), and you should avoid mixing this with code-level SDK setup or the classic elastic-apm agent. It's designed for services that don't have any APM instrumentation yet. The skill follows Elastic's opinionated EDOT approach, which means less flexibility but also less room to misconfigure the agent and end up with broken telemetry.

GitHub stars
503
last updated
Jun 1, 2026

Install

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

Installs into .claude/skills of the current project.

Files

This automates the setup of Elastic's OpenTelemetry Python agent for tracing, metrics, and logs collection. You install elastic-opentelemetry, run edot-bootstrap to detect and instrument your dependencies, then wrap your app entrypoint with opentelemetry-instrument. The configuration is straightforward but prescriptive: you need exactly three environment variables (service name, OTLP endpoint, and auth header), and you should avoid mixing this with code-level SDK setup or the classic elastic-apm agent. It's designed for services that don't have any APM instrumentation yet. The skill follows Elastic's opinionated EDOT approach, which means less flexibility but also less room to misconfigure the agent and end up with broken telemetry.

Browse the repository on GitHub

Sponsors

Details

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

More from elastic/agent-skills

All 57
1elastic avatarobservability-edot-python-migrateelastic/agent-skills>0skills.sh installs
2elastic avatarobservability-logs-searchelastic/agent-skills>0skills.sh installs
3elastic avatarobservability-manage-sloselastic/agent-skills>0skills.sh installs
4elastic avatarobservability-service-healthelastic/agent-skills>0skills.sh installs
5hoangnguyen0403 avatardeploy-releasehoangnguyen0403/agent-skills-standardPrepare and verify a staged or production deployment with rollback and smoke checks.0skills.sh installs
6kubesphere avatarkubesphere-devops-tenantkubesphere/kubesphereIf you're a namespace-scoped user in KubeSphere without cluster-admin access, this is how you interact with DevOps projects.0skills.sh installs