Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 2.09 KB

README.md

File metadata and controls

61 lines (38 loc) · 2.09 KB

Instana

The instana package provides Python metrics and traces (request, queue & cross-host) for Instana.

This package is currently in BETA (but maturing fast).

Note

This package supports Python 2.7 or greater.

Any and all feedback is welcome. Happy Python visibility.

Installation

The instana package is hosted on pypi and can be installed with:

$ pip install instana

Usage

The instana package will automatically collect key metrics from your Python processes. Just install and go.

Django Middleware

For the initial BETA, Django instrumentation must be manually inserted into the Django middleware list. This will be automated before post BETA release.

in myapp/settings.py:

import instana.middleware

MIDDLEWARE = [
    'instana.middleware.InstanaMiddleware',            # Add Instana at the start of the list
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

Tracing

This Python package supports OpenTracing.

Documentation

You can find more documentation covering supported components and minimum versions in the Instana documentation portal.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/instana/python-sensor.

More

Want to instrument other languages? See our Nodejs, Go, Ruby instrumentation or many other supported technologies.