Application Environment
By default, the AppSignal for Python integration will report the current application in the “development” environment. You can use theenvironment configuration option to set a different environment. For example, in your __appsignal__.py file:
APPSIGNAL_APP_ENV environment variable.
Reporting Deploys
You can use Deploy Markers to report new deploys of your Python application. You can combine Deploy Markers with Backtrace Links to directly link from AppSignal to the source code on platforms like GitHub and GitLab. Deploy markers can be configured using therevision config option or the APP_REVISION environment variable. We recommend using Git commit SHAs or a tag in your SCM. For example, for Git applications, add the following code to the __appsignal__.py file:
Importing the Configuration File
The AppSignal for Python integration needs to be loaded and started in your application. To load and start the integration, import theappsignal module and call the appsignal.start() method on app start or in the main method.