Type to search.

Wrapper Support

Serverless Observability

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Stack

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

APM Agent Python Preview

The Elastic APM Python agent enables you to trace the execution of operations in your Python applications, sending performance metrics and errors to the Elastic APM Server.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Warning

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

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

  • Django
  • Flask
  • Starlette

Please keep in mind that these instrumentations are a work in progress! We’d love to have feedback on our issue 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!

Shell
$ elasticapm-run --version
elasticapm-run 6.14.0

Alternatively, you can run the entrypoint directly:

Shell
$ python -m elasticapm.instrumentation.wrapper --version
elasticapm-run 6.14.0

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

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

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

Shell
$ ELASTIC_APM_SERVICE_NAME=my_flask_app elasticapm-run flask run

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

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