Python Zero-Code Instrumentation
Zero-code instrumentation for Python uses the
opentelemetry-instrument CLI wrapper to automatically
capture telemetry from popular libraries and frameworks
— without modifying your application code.
Overview
The OpenTelemetry Python zero-code instrumentation can automatically capture telemetry at the "edges" of your application, such as:
- Inbound HTTP requests (Django, Flask, FastAPI)
- Outbound HTTP calls (urllib3, requests, httpx)
- Database calls (psycopg, SQLAlchemy, pymysql)
- Messaging operations (Celery, Kafka, RabbitMQ)
- Logging (standard library
loggingmodule)