The Python tracing library allows you to collect and monitor your Python application traces, calls, metrics, and correlation to logs.
To trace AWS Lambda functions in Python please refer to the following AWS Lambda tracing.
Install our Python library using
pip install -U epsagon
To run the library as part of your application, you can choose between one of the following methods:
- Using auto-tracing.
- Calling the SDK.
Auto-tracing loads the Epsagon library as part of your application. Configurations can be done through the environment variables:
export EPSAGON_TOKEN=<EPSAGON-TOKEN>export EPSAGON_APP_NAME=<APP-NAME-STAGE>export AUTOWRAPT_BOOTSTRAPS=epsagon python <APP-NAME>
Another simple alternative is to copy the snippet into your code:
import epsagon epsagon.init( token=<EPSAGON-TOKEN: str>, app_name=<APP-NAME-STAGE: str> metadata_only=False,)
The supported frameworks and libraries are listed here.