Rust Jaeger Python Client
A faster reporter for the python jaeger-client
that reports spans in a native background thread.
This is relatively untested, so use at your own risk! (You may want to manually wrap this class in python so that calls to report_span
cannot fail).
Usage:
from jaeger_client import Config
import opentracing
from rust_python_jaeger_reporter import Reporter
config = Config(
config={
'sampler': {
'type': 'const',
'param': 1,
},
},
service_name='your-app-name',
)
reporter = Reporter(config={"agent_host_name": "127.0.0.1", "agent_port": 6831})
tracer = config.create_tracer(reporter, config.sampler)
opentracing.set_global_tracer(tracer)
Building
Requires a nightly rust compiler, due to using the PyO3 library.
Maturin can be used to develop, test and
publish the library.
Publishing to PyPI
As per the maturin docs
we use a docker image to build the binary wheels for the various python versions:
docker run -it --rm -v $(pwd):/io konstin2/maturin publish -f