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.16-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70ab96cd4b56e25b7c2f8408722500c0bf531143ea5ef388fb738a67e967734a |
|
MD5 | e74d00d68e93b41d9ccfd6eb08173f6a |
|
BLAKE2b-256 | b62bced41e4c9d311d6b5514895c5ffc8726286263e8ea282540c382c18d6709 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 534b2bf9cb26afa45e51e3343af72eba9ff4e09368f30e51ddbebe06edc8681f |
|
MD5 | d21ca73549276fb84fd7b7a6cff745e8 |
|
BLAKE2b-256 | ef5e201db2b0a5918f17058099fb09bef6f50b33226fdf787f70cb04f9a9d3cb |
Hashes for rust_python_jaeger_reporter-0.1.16-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b213c6be30a1989716fdfdfacdf8392674841ea064e3da68445ce26a3259a1f |
|
MD5 | 6e9648a5f2af6dbfc24733607bc1cb6c |
|
BLAKE2b-256 | e892ae0022c434f85b0d4bf29f704066fdee50b4bd7434e7d6595466ac0aa806 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f85946563bcdd688789eb24366cb54941b87af8e1167d03fe64c15d1d72acbf |
|
MD5 | c7833aa5a4b0d1486c1871653e6d6abd |
|
BLAKE2b-256 | 8f8cbbc1bedee907169e3aead3c766586eaea587c7a1b52aace8dc0eaaa86ec8 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0464b2c7cf4348cdd5b96c2fbb48e610976dcb242ec343c6c5ce178ed9f9732 |
|
MD5 | e6081950b34177cfea3587a35bfcf812 |
|
BLAKE2b-256 | 72ecef3b5a47da28158a20d21894186a79a2833c9626efd5b466a8f6f6ccf679 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b951c2181a0670419b391e19329f0ee1327cd4b49dcec381e1880888f5db52fb |
|
MD5 | e176ccc20bf0c47b89c2543a14df4ede |
|
BLAKE2b-256 | ce5043ec2b68aae7e5c1eb8906c040cb80f99e6b59fe7c687cad5bd4c0725cc0 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516d9f7d878e3474492fbf9e2e43d17baafcc029dc5ea42690b1b23e3bc1e349 |
|
MD5 | 206badc5c2a35a705a3644d4ec7b62e4 |
|
BLAKE2b-256 | 2dfbb9ad3527c7f7d37d8a0a845b2346d87bfaeec592caffc5bb71594c390976 |
Hashes for rust_python_jaeger_reporter-0.1.16-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68da0722951a3b6b4bfaaf086019c5bac25243f4588cd1f5e087b15df28a937 |
|
MD5 | 754089c64175757b35a3931e9d22eef6 |
|
BLAKE2b-256 | fff744ebcad7c9e7beede314bdd575bdc044b85e4576ec151bac18cda0c1319a |