A faster reporter for the python `jaeger-client` that reports spans in a native background thread.
Project description
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
# The standard config for jaeger. No need to change anything here.
config = Config(
config={
'sampler': {
'type': 'const',
'param': 1,
},
},
service_name='your-app-name',
)
# Create the rust reporter.
reporter = Reporter()
# Create the tracer and install it as the global tracer.
#
# *Note*: This invocation doesn't support throttling or the remote sampler.
tracer = config.create_tracer(reporter, config.sampler)
opentracing.set_global_tracer(tracer)
Limitations
The reporter is not configurable and is hardcoded to report to the local agent on localhost and the default port.
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
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 Distributions
Built Distributions
Hashes for rust_python_jaeger_reporter-0.1.17-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2636bb2446d0e66145aa99bf3a73d2c23d632b164825137a875fbae874348b45 |
|
MD5 | d6d5858ba7e0df8e2c8f0592a86945c8 |
|
BLAKE2b-256 | 14b8686b4abceab791f1c30ce446382fb8e55a4b20e5003845da05877a8c5b25 |
Hashes for rust_python_jaeger_reporter-0.1.17-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c55dfdcb84c9db2cfcf0b6c7d12e2afc2eedcaa661686bbbbd56dee3a89cd8db |
|
MD5 | 0e60f2ed720563718a638a7abe110e8a |
|
BLAKE2b-256 | ecf19c01ce0170e3a36777b2bfe03462c615d9ba558484db508a0ae56bd3d8e2 |
Hashes for rust_python_jaeger_reporter-0.1.17-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff917dd2134b92437bb3efb794117b5a4c59e7641ea87e9c8b1328c737c0b165 |
|
MD5 | ff5b54a236bd6ed544d0f45fc50a8a5e |
|
BLAKE2b-256 | 0f8ff74e7322a751248931511b59893a9a997f163cc013fba5fc80c62e81168c |
Hashes for rust_python_jaeger_reporter-0.1.17-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25e1bce675f253a6f9aa83bc7a7f0d9a7a90fe5e1255920e5583452490696b21 |
|
MD5 | ea1328d88a99ba1c1d3434a7015b98b8 |
|
BLAKE2b-256 | d476e1d0321574898ddad354a87582638c055c82d8f1717580179b488b964769 |
Hashes for rust_python_jaeger_reporter-0.1.17-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a43024d33a005271aa0ca0d5bf5200b0402d21a10885c70877441b6b0bae0a |
|
MD5 | 9d1f419eb2b3c647c614330c031bec65 |
|
BLAKE2b-256 | f85b597b8b789d8835c2aa5e368beaf05f05110d85acc363b8076b9086a88c90 |