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.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1fb9d8daa44917ad0fca3fd2855d27d8c4a359d6a2560c2ca43dcc1b31be2d0 |
|
MD5 | 34db2f9a5db60e2bc661302145e17665 |
|
BLAKE2b-256 | 8f7ba71416c98bb4d1658812d98dfb57f4c568a1ce9455c3a0f43c43c9a41a62 |
Hashes for stackify_python_apm-1.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a19bdbba48aad2e5ecaa94aea3148b735daac9ee2717ca02fd5b3b2a28aba0 |
|
MD5 | 3c5e2e37b414841d0f67cbc52dda1f05 |
|
BLAKE2b-256 | c574b1fd2d8f3401deafdea11b1bfd45833136121e9f6a5b5103e92da3a2b8b2 |