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'
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)
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({ 'pyramid.tweens': ['stackifyapm.contrib.pyramid.stackifyapm_tween_factory']. }) as config: ...
-
Customize Application Name and Environment configuration:
with Configurator({ 'APPLICATION_NAME': 'Python Application', 'ENVIRONMENT': 'Production', }) as config: config.include('stackifyapm.contrib.pyramid')
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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c628f91a5812b4785c5a848b02a0c7881403afe431bdbe4e6df7c1c650706ccc |
|
MD5 | bdabf044213ceb75f1f80e6d24fefa5a |
|
BLAKE2b-256 | 7143215086d1f7f685c17bc59563e77a8d048bf647b0a0cdee0d9e24bf31e399 |
Hashes for stackify_python_apm-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 699535f25a5ed7af5240b2dd9a8334b0760a47424122f99ccc290698b379b09d |
|
MD5 | c36fa84962782f47b3fd035628f58a43 |
|
BLAKE2b-256 | e2546657e854ec440e3fec64f0e78c72436e528bf74b46d0b34283b15026243b |