Python

Installation

The instana package is available on PyPI.

To install:

pip install instana into the virtual-env or container

or using Pipenv:

pipenv install instana

See the open source repository on Github for optional configuration options: https://github.com/instana/python-sensor

Supported Versions

Python Versions
CPython (>=2.7 <3.0) or >=3.3
Frameworks Versions
Django >= 1.9
Flask >= 0.12.0
Clients Versions
MySQL-python >= 1.2.5
Requests >= 2.16.1
suds-jurko >= 0.6
Urllib3 >= 1.18.1

Supported Webservers

  • uWSGI
  • GUnicorn
  • mod_wsgi
  • Nginx WSGI

Sensor Data Collection

Python

Tracked Configuration Metrics
Name GC Activity
Runtime Memory Usage
PID Threads
Loaded Modules Paging
I/O
Events
Context Switching

Tracing

Mode

  • Automatic tracing of all requests
  • Cross host and cross language tracing
  • Supports OpenTracing

OpenTracing

Installation of the Instana package automatically sets opentracing.tracer to the InstanaTracer.

import opentracing
import instana

opentracing.tracer.start_span(...)