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
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
```
## 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
# 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
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
```
## 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
Release history Release notifications | RSS feed
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-2.0.0.tar.gz
(44.3 kB
view details)
File details
Details for the file jaeger-client-2.0.0.tar.gz
.
File metadata
- Download URL: jaeger-client-2.0.0.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da675639319a3e04e7aae12ad1548e9071634f815e70adb74892f04699010a15 |
|
MD5 | 246fc2d21fe4f1d1e02f9be0e73afa8a |
|
BLAKE2b-256 | 765d76b70142bfd6757fe3816951890db2a04922b373a2216a91c064bc9961d8 |