Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Reference/
  3. Ingestion tools/
  4. APM/
  5. APM agents/
  6. APM Python agent/
  7. Set up the APM Python Agent

Wrapper Support

The following frameworks are supported using our new wrapper script for no-code-changes instrumentation:

Please keep in mind that these instrumentations are a work in progress! We’d love to have feedback on ourissue tracker.

When installing the agent, an entrypoint script,elasticapm-run is installed as well. You can use this script to instrument your app (assuming it’s using a supported framework) without changing your code!

$ elasticapm-run --versionelasticapm-run 6.14.0

Alternatively, you can run the entrypoint directly:

$ python -m elasticapm.instrumentation.wrapper --versionelasticapm-run 6.14.0

Theelasticapm-run script can be used to run any Python script or module:

$ elasticapm-run flask run$ elasticapm-run python myapp.py

Generally, config should be passed in via environment variables. For example,

$ ELASTIC_APM_SERVICE_NAME=my_flask_app elasticapm-run flask run

You can also pass config options as arguments to the script:

$ elasticapm-run --config "service_name=my_flask_app" --config "debug=true" flask run

[8]ページ先頭

©2009-2026 Movatter.jp