Python on Linux
- 1 Minute to read
- Print
- DarkLight
- PDF
Python on Linux
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Prerequisites:
- Supported Python Technologies
Since Prefix and Retrace share the same modules/profiler, the supported frameworks between the two products will be the same in most cases.
1. Download and install the Prefix installation file:
Check out the Getting Started Prefix page to download and install Prefix on your workstation.
2. Get the latest Stackify Python Profiler for Prefix:
Install the Stackify Python APM agent using pip:
$ pip install stackify-python-apm
You may install your stackify-python-apm by adding it to your project's requirements.txt
file.
3. Configure the Application to use the Profiler with Prefix Enabled:
Django
- Add
stackifyapm.contrib.django
toINSTALLED_APPS
in yoursettings.py
:
INSTALLED_APPS = [
...
'stackifyapm.contrib.django',
...
]
- Add our tracing middleware to
MIDDLEWARE
in yoursettings.py
:
MIDDLEWARE = [
...
'stackifyapm.contrib.django.middleware.TracingMiddleware',
...
]
- Customize Application Name and Environment Name in your settings.py file
- Add
PREFIX_ENABLED = True
to the settings.py file.
APPLICATION_NAME = 'Python Application'
ENVIRONMENT = 'Production'
PREFIX_ENABLED = True
4. Verify application requests show up in Prefix
Was this article helpful?