Skip to main content

A faster reporter for the python `jaeger-client` that reports spans in a native background thread.

Project description

Rust Jaeger Python Client

PyPI PyPI - Format

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rust_python_jaeger_reporter-0.1.19-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.19-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.19-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.19-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.7 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

File details

Details for the file rust_python_jaeger_reporter-0.1.19-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.19-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3ade7fab15e5f9005cd34ed27a56114c26da0be199f3ff6eebe0c7e669839e94
MD5 037944d12abcb103d3dc6676eb6e3015
BLAKE2b-256 1ca5cc6c2d37ff03c5f12282023d1402e81821396b4942ea74e32d64c949f5b1

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a60708c00d28cff464ad6225969231c0dfad23eeb6b7fe29425c741a1b9b21f9
MD5 3b9761ab2cee647d5587b171d14c5f4a
BLAKE2b-256 a67e075be71d48eaac7936080c6051313e4c9f9584f3aa34e6aa76e0870031d7

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.19-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.19-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4653d369f790f7f5f3f492e575f838c3b5ab6de3a728597c6315f1af8e652768
MD5 750de881a466db426480f4267513dab1
BLAKE2b-256 960af79347c149fb458f107f2e847cf5e10978a2dad5c85258424512ed0d89eb

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.19-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.19-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c4790c0e5342750f8eed8b13efc7b98890d708a6b45d85b5b77f5b387caf413d
MD5 94cf529cfce4be772af2f2e7cddbfa04
BLAKE2b-256 38e3d5f16eb2608f52019855c75c3fe3965c1d73cf14ca154f55b82ab0ce98a5

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.19-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.19-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e683c26042afe73041ae4359fbcd7fef11e31364dc9f13ac543e8f08c494005
MD5 8ffa427a6ceba648460b519c11853664
BLAKE2b-256 4256b27476e1b0991c5a35f642b64206c63ccbaa65733f62aa7ec308a8ef0bf0

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