Skip to main content

Jaeger Python OpenTracing Tracer implementation

Project description

[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![PyPI version][pypi-img]][pypi]

# 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](https://github.com/opentracing/opentracing-python)
for additional detail.

## Installation

```bash
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:

```python
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](jaeger_client/config.py).

## License

[The MIT License](LICENSE).

[ci-img]: https://travis-ci.org/uber/jaeger-client-python.svg?branch=master
[ci]: https://travis-ci.org/uber/jaeger-client-python
[cov-img]: https://coveralls.io/repos/uber/jaeger-client-python/badge.svg?branch=master
[cov]: https://coveralls.io/github/uber/jaeger-client-python?branch=master
[pypi-img]: https://badge.fury.io/py/jaeger-client.svg
[pypi]: https://badge.fury.io/py/jaeger-client

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaeger-client-3.1.0.tar.gz (49.0 kB view details)

Uploaded Source

File details

Details for the file jaeger-client-3.1.0.tar.gz.

File metadata

File hashes

Hashes for jaeger-client-3.1.0.tar.gz
Algorithm Hash digest
SHA256 d6bf3467d1d10fa70e38472fabdce9fd4d37ec4bedb5f6e7ac5128f847c2dcd9
MD5 e2dd834bfd16e4552c7b5ed16b036bc4
BLAKE2b-256 467e7991f636f1e950664c1fd617ded7d1cc547c8b352d0b1795ea85646cbb7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page