Advanced Configuration
  • 1 Minute to read
  • Dark
    Light
  • PDF

Advanced Configuration

  • Dark
    Light
  • PDF

Article summary

Python CLI Support

The Stackify Python Profiler can be used to track Python CLI applications.

Add the following to your Python application.

from stackifyapm.contrib import StackifyAPM
StackifyAPM()

Configuration is required to itemize which methods mark the start of a transaction.
Include a stackify.json file in your application's root directory:

{
    "application_name": "Python Application",
    "environment": "Production",
    "instrumentation": [{
        "class": "SampleClass1",
        "method": "execute",
        "module": "path.file",
        "transaction": true
    }]
}
Python CLI applications are tracked in Retrace at Monitoring > Other Apps. You must use the Add App button to add your application.

Was this article helpful?