Instrument a Python application with the Elastic Distribution of OpenTelemetry (EDOT) Python agent for automatic tracing, metrics, and logs. Use when adding observability to a Python service that has no existing APM…
---
name: observability-edot-python-instrument
description: >
Instrument a Python application with the Elastic Distribution of OpenTelemetry (EDOT)
Python agent for automatic tracing, metrics, and logs. Use when adding observability
to a Python service that has no existing APM agent.
metadata:
author: elastic
version: 0.1.0
---
# EDOT Python Instrumentation
Read the setup guide before making changes:
- [EDOT Python setup](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/python/setup)
- [EDOT Python configuration](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/python/configuration)
- [OpenTelemetry Python auto-instrumentation](https://opentelemetry.io/docs/zero-code/python/)
## Guidelines
1. Install `elastic-opentelemetry` via pip (add to `requirements.txt` or equivalent)
1. Run `edot-bootstrap --action=install` during image build to install auto-instrumentation packages for detected
libraries
1. Wrap the application entrypoint with `opentelemetry-instrument` — e.g. `opentelemetry-instrument gunicorn app:app` or… install to load the full skillIn any Claude conversation, say:
Install the Observability Edot Python Instrument skill
It activates automatically in your next session.
Not connected yet? Connect your AI first →
MCP endpoint
https://skillme.dev/api/mcp