Loading...
Loading...
Migrate a Python application from the classic Elastic APM Python agent to the EDOT Python agent. Use when switching from elastic-apm to elastic-opentelemetry.
npx skill4agent add elastic/agent-skills observability-edot-python-migrateelastic-apmElasticAPM(app)elasticapm.contrib.*app.config['ELASTIC_APM']ELASTIC_APM_*elastic-opentelemetryrequirements.txtedot-bootstrap --action=installopentelemetry-instrumentopentelemetry-instrument gunicorn app:appOTEL_SERVICE_NAMEELASTIC_APM_SERVICE_NAMEOTEL_EXPORTER_OTLP_ENDPOINTELASTIC_APM_SERVER_URLapm-server:8200/intake/v2/eventsOTEL_EXPORTER_OTLP_HEADERS"Authorization=ApiKey <key>""Authorization=Bearer <token>"ELASTIC_APM_SECRET_TOKENOTEL_TRACES_EXPORTEROTEL_METRICS_EXPORTEROTEL_LOGS_EXPORTERelastic-apm