Skip to content

PikBot/jaeger-client-python

 
 

Repository files navigation

Build Status Coverage Status PyPI version

Jaeger Bindings for Python OpenTracing API

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.

Installation

apt-get install python-dev
pip install jaeger-client

Getting Started

(under construction)

If your python code is already instrumented for OpenTracing, you can simply switch to Jaeger's implementation with:

import opentracing
from jaeger_client import Config

if __name__ == "__main__":
  config = Config(config={},  # usually read from some yaml config
                  service_name='your-app-name')
  tracer = config.initialize_tracer()

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

  tracer.close()  # flush any buffered spans

Configuration

(under construction)

See Config class.

License

The MIT License.

About

Jaeger Bindings for Python OpenTracing API

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 97.4%
  • Makefile 1.9%
  • Other 0.7%