This is the official Python module for Stackify Python APM.
Project description
Stackify Python APM
Installation Guide
Django Setup
-
Install Stackify Linux Agent.
-
Check that your setup meets our system requirements.
- Python Versions 2.7 - 3.7
- Django Versions 1.7 - 2.x
-
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. -
Add
stackifyapm.contrib.django
toINSTALLED_APPS
in your settings:INSTALLED_APPS = ( # ... 'stackifyapm.contrib.django', )
-
Add our tracing middleware to your
MIDDLEWARE settings
:MIDDLEWARE = ( 'stackifyapm.contrib.django.middleware.TracingMiddleware', # ... )
-
Customize Application Name and Environment configuration:
APPLICATION_NAME = 'Python Application' ENVIRONMENT = 'Production'
or
STACKIFY_APM = { 'APPLICATION_NAME': 'Python Application', 'ENVIRONMENT': 'Production', }
Flask Setup
-
Install Stackify Linux Agent.
-
Check that your setup meets our system requirements.
- Python Versions 2.7 - 3.7
- Flask Versions 0.7 - 1.0
-
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. -
Update and insert the apm settings to your application:
from stackifyapm.contrib.flask import StackifyAPM app = Flask(...) StackifyAPM(app)
-
Customize Application Name and Environment configuration:
app.config['APPLICATION_NAME'] = 'Python Application' app.config['ENVIRONMENT'] = 'Production' StackifyAPM(app)
or
STACKIFY_APM = { 'APPLICATION_NAME': 'Python Application', 'ENVIRONMENT': 'Production', } StackifyAPM(app, **STACKIFY_APM)
Pyramid Setup
-
Install Stackify Linux Agent.
-
Check that your setup meets our system requirements.
- Python Versions 2.7 - 3.7
- Pyramid Versions 1.4 - 1.10
-
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. -
Update and insert the apm settings to your application:
Include our pyramid tween integration
with Configurator() as config: config.include('stackifyapm.contrib.pyramid')
Or explicit tween configuration
with Configurator(settings={ 'pyramid.tweens': ['stackifyapm.contrib.pyramid.stackifyapm_tween_factory']. }) as config: ...
-
Customize Application Name and Environment configuration:
STACKIFY_APM = { 'APPLICATION_NAME': 'Python Application', 'ENVIRONMENT': 'Production', } with Configurator(settings=STACKIFY_APM) as config: config.include('stackifyapm.contrib.pyramid')
Standalone Setup
-
Install Stackify Linux Agent.
-
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. -
Update and insert the apm settings to your application:
from stackifyapm.contrib import StackifyAPM StackifyAPM()
-
Customize Application Name and Environment configuration:
STACKIFY_APM = { 'APPLICATION_NAME': 'Python Application', 'ENVIRONMENT': 'Production', } StackifyAPM(**STACKIFY_APM)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stackify-python-apm-1.8.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dceb4843ccf9cc804aef5bf2a26d46711b0a8ae3f3337d29333c2e9dda40d77c |
|
MD5 | 425ee089e53dfb2797475844c1ab06e7 |
|
BLAKE2b-256 | e25477861d83f53d3f8ed9aff97c7031ca6a9fd5d5cffdba64d6017e5c53e4d0 |
Hashes for stackify_python_apm-1.8.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc8a185e2cd2b9ddc86261107971a08a6796ad4b320e1e4a42d60bf0c9b69a6 |
|
MD5 | d0793c9d175cea6be18ad86ee08c5d96 |
|
BLAKE2b-256 | e111664d8cef1a8d10598ee9ff0852367cedd3e39d4d3fccdd89e2b159989e43 |