Instrument Python in Production
Opinionated Python workflow for shipping Obtrace in FastAPI, Django, and worker-based services.
Instrument Python in Production
Use this workflow when your first serious rollout target is a Python service.
Best first targets
- FastAPI APIs
- Django backends
- Celery workers
Sequence
- Install Python SDK
- Configure Authentication
- Add
service,env, andversion - Validate one real request path
- Connect release metadata
Example bootstrap
What to validate
- a real request emits both log and trace
service_name,env, andservice_versionare stable after restartcloud.regionis present when deployed across regions- exceptions are visible before expanding instrumentation to more workers
Done definition
- One Python service emits diagnosable telemetry in production
- Exceptions are tied to deploy context