The LightStep distributed tracing library for Python
Python Makefile JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


PyPI Circle CI MIT license

The LightStep distributed tracing library for Python.


apt-get install python-dev
pip install lightstep

Getting started

Please see the example programs for examples of how to use this library. In particular:

You can run the examples by doing:

source .tox/py27/bin/activate
python examples/nontrivial/

Or if your python code is already instrumented for OpenTracing, you can simply switch to LightStep's implementation with:

import opentracing
import lightstep

if __name__ == "__main__":
  opentracing.tracer = lightstep.Tracer(

  with opentracing.tracer.start_span('TestSpan') as span:
    span.log_event('test message', payload={'life': 42})


This library is the LightStep binding for OpenTracing. See the OpenTracing Python API for additional detail.