This is a client-side library that can be used to instrument Python apps for distributed trace collection, and to send those traces to Jaeger. See the OpenTracing Python API for additional detail.
apt-get install python-dev
pip install jaeger-client(under construction)
If your python code is already instrumented for OpenTracing, you can simply switch to Jaeger's implementation with:
from jaeger_client import Config, initializer
if __name__ == "__main__":
config = Config(config={}, # usually read from some yaml config
service_name='your-app-name')
initializer.initialize_with_local_agent(config=config)
with opentracing.tracer.start_span('TestSpan') as span:
span.log_event('test message', payload={'life': 42})
opentracing.tracer.close() # flush any buffered spans(under construction)
See Config class.