Skip to main content

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'
    

    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)
    

Project details


Download files

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

Source Distribution

stackify-python-apm-1.10.1.tar.gz (88.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stackify_python_apm-1.10.1-py3-none-any.whl (166.5 kB view details)

Uploaded Python 3

File details

Details for the file stackify-python-apm-1.10.1.tar.gz.

File metadata

  • Download URL: stackify-python-apm-1.10.1.tar.gz
  • Upload date:
  • Size: 88.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.7

File hashes

Hashes for stackify-python-apm-1.10.1.tar.gz
Algorithm Hash digest
SHA256 04feaf8e30fd3212329b95839d902e227bcd9fcb6cfc18bf3615ee0fa67323f6
MD5 64431d7a9d5192e96699065ab8a3270c
BLAKE2b-256 8a13c919ca9d1fd09deb7d4262db5f4267f39bfe2f72f21afed18941b2eea630

See more details on using hashes here.

File details

Details for the file stackify_python_apm-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: stackify_python_apm-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 166.5 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/47.1.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.7

File hashes

Hashes for stackify_python_apm-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67a2a8f2bf011f37e16a56747c0aed1b9aed49269468c7a4221c00287f2542f0
MD5 ce80069796fc9a1fb5bff7ff56495c96
BLAKE2b-256 92a66b1ef1d7182f6c7a35b992ff4803374b9bf16f38f109357e23c0feba2bc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page