Skip to main content

Stackify Python APM

Installation Guide

Django Setup

  1. Install Stackify Linux Agent.

  2. Check that your setup meets our system requirements.

    • Python Versions 2.7 - 3.7
    • Django Versions 1.7 - 2.x
  3. 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.

  4. Add stackifyapm.contrib.django to INSTALLED_APPS in your settings:

    INSTALLED_APPS = ( # ... 'stackifyapm.contrib.django', )
    
  5. Add our tracing middleware to your MIDDLEWARE settings:

    MIDDLEWARE = ( 'stackifyapm.contrib.django.middleware.TracingMiddleware', # ... )
    
  6. Customize Application Name and Environment configuration:

    APPLICATION_NAME = 'Python Application'
    ENVIRONMENT = 'Production'
    

    or

    STACKIFY_APM = {
        'APPLICATION_NAME': 'Python Application',
        'ENVIRONMENT': 'Production',
    }
    

Flask Setup

  1. Install Stackify Linux Agent.

  2. Check that your setup meets our system requirements.

    • Python Versions 2.7 - 3.7
    • Flask Versions 0.7 - 1.0
  3. 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.

  4. Update and insert the apm settings to your application:

    from stackifyapm.contrib.flask import StackifyAPM
    
    app = Flask(...)
    StackifyAPM(app)
    
  5. 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

  1. Install Stackify Linux Agent.

  2. Check that your setup meets our system requirements.

    • Python Versions 2.7 - 3.7
    • Pyramid Versions 1.4 - 1.10
  3. 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.

  4. 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:
        ...
    
  5. 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

  1. Install Stackify Linux Agent.

  2. 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. Update and insert the apm settings to your application:

    from stackifyapm.contrib import StackifyAPM
    
    StackifyAPM()
    
  4. Customize Application Name and Environment configuration:

    STACKIFY_APM = {
        'APPLICATION_NAME': 'Python Application',
        'ENVIRONMENT': 'Production',
    }
    
    StackifyAPM(**STACKIFY_APM)
    

Release files for stackify-python-apm 1.12.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stackify-python-apm 1.12.2
File Size Uploaded
stackify-python-apm-1.12.2.tar.gz 96.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stackify-python-apm 1.12.2
File Interpreter ABI Platform
stackify_python_apm-1.12.2-py3-none-any.whl Python 3 none any Details

Total release size: 273.8 kB

Release files / stackify-python-apm-1.12.2.tar.gz

Download URL stackify-python-apm-1.12.2.tar.gz
Size 96.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e1208268a50c385d90c1eda3d7dfbdf151646c1de602714b021176d30377b335
BLAKE2b-256 checksum
How to use checksums
acb52d66ad38df1ebf9065a645052f85cffbdcc485c2009fcc1c6e45b50200dd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / stackify_python_apm-1.12.2-py3-none-any.whl

Download URL stackify_python_apm-1.12.2-py3-none-any.whl
Size 176.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d412754bc797bc4dad48b0d6dce6b7e90028b1b516e3be72ab7e1b8ef795c947
BLAKE2b-256 checksum
How to use checksums
1b90fd73351245fe37d636ae8ce0ccde107a26f53d612c46f4149ac8725d1cf5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.12.2 This release

2 release files

1.11.3

2 release files

1.11.2

2 release files

1.10.1

2 release files

1.9.1

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.7.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.2.1

2 release files

1.1.2

2 release files

1.0.1

2 release files

0.9.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page