Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

This is the official Python module for Stackify Python APM.

Project description

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'
    

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)
    

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({
        'pyramid.tweens': ['stackifyapm.contrib.pyramid.stackifyapm_tween_factory'].
    }) as config:
        ...
    
  5. Customize Application Name and Environment configuration:

    with Configurator({
        'APPLICATION_NAME': 'Python Application',
        'ENVIRONMENT': 'Production',
    }) as config:
        config.include('stackifyapm.contrib.pyramid')
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for stackify-python-apm, version 1.6.0
Filename, size File type Python version Upload date Hashes
Filename, size stackify_python_apm-1.6.0-py3-none-any.whl (128.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size stackify-python-apm-1.6.0.tar.gz (68.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page