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.18-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.18-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.18-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.18-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (253.0 kB view details)

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

rust_python_jaeger_reporter-0.1.18-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (253.0 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.18-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.18-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4482b8a166d03a9bb4144badd2745fbf10853d2d3a89600941cc1387912906c5
MD5 c5586359369d6f1b77495a8c1f5e7607
BLAKE2b-256 99f90adf99cdb1dab2386fc6413628fb0100ad70d4bd8a0807eec64c303af87e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.18-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f2a2cd56ad4396f68371787958ce652ba3934456d1046e6ff701d194e2951bf5
MD5 45632705211b82dc04c0599d6f1f1895
BLAKE2b-256 7f558ea7dec12a61ca8d9d5743aec7147265ecfb9519d668f7e85a3b5ecceca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.18-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e9d296044a65000c620fa679733b0e398d5f8ab560c78914645c2744ac58b745
MD5 a18ce27db3086c950f6206f12a904ba7
BLAKE2b-256 171e9aaa920a21e168108d9fb30748f6f28518c75d3107b955df1f83654673ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.18-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 01d3932e426b63fc3b8f8585ca1afde07e0971faed74d30ec2f7f011e391e2ce
MD5 e9dd4d074841644efa4f2fdf4e24d9ff
BLAKE2b-256 5f81ef249e2bb10f5c3dcdee6eb4d8e65d0b5bb6903ba7db1cf153711a754768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.18-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f679e27d988c636bfb04a2adac5b44d0a8311d1e5311c30dfbadf2378c99b05e
MD5 c7497f6d416aeafda3a65ec9ab6eb810
BLAKE2b-256 88fbe0a42d159d8c0c8856299afcd2442b08ca1f738eaa37d1942898677bf250

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