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-apmYou may install your stackify-python-apm by adding it to your project's
requirements.txtfile. -
Add
stackifyapm.contrib.djangotoINSTALLED_APPSin 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-apmYou may install your stackify-python-apm by adding it to your project's
requirements.txtfile. -
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-apmYou may install your stackify-python-apm by adding it to your project's
requirements.txtfile. -
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-apmYou may install your stackify-python-apm by adding it to your project's
requirements.txtfile. -
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stackify-python-apm-1.12.2.tar.gz.
File metadata
- Download URL: stackify-python-apm-1.12.2.tar.gz
- Upload date:
- Size: 96.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/57.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1208268a50c385d90c1eda3d7dfbdf151646c1de602714b021176d30377b335
|
|
| MD5 |
a6d7a093578c9007b7e0b69efead39f5
|
|
| BLAKE2b-256 |
acb52d66ad38df1ebf9065a645052f85cffbdcc485c2009fcc1c6e45b50200dd
|
File details
Details for the file stackify_python_apm-1.12.2-py3-none-any.whl.
File metadata
- Download URL: stackify_python_apm-1.12.2-py3-none-any.whl
- Upload date:
- Size: 176.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/57.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d412754bc797bc4dad48b0d6dce6b7e90028b1b516e3be72ab7e1b8ef795c947
|
|
| MD5 |
934612a021dec32197a43e981f07618b
|
|
| BLAKE2b-256 |
1b90fd73351245fe37d636ae8ce0ccde107a26f53d612c46f4149ac8725d1cf5
|