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

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.20-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.20-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.20-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.3 kB view details)

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

rust_python_jaeger_reporter-0.1.20-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (252.4 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.20-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.20-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 175c00c042dd937485dd5657fd250676dd768009ed46c67f5a31a9323e1b7167
MD5 29d5d937942c789bc60a7ff4167df3ce
BLAKE2b-256 ca252b7c8f357be4601a5ba9897e6f2e0a2aad2d33a283479c7a78e0177deb2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.20-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d98173b0c5b0f962404cd8c6497e75f0222a4840f4b871149945754f75050bf6
MD5 6ad347d5f804ca6baf4a7ad02bceca5f
BLAKE2b-256 9e9ee92a345341bb544935c1b534cb0b3a1689a65cc5f8973c651c1930f0ef72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.20-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fb30643f3c315453e0538c0227624babae0173607cddd9d1b440101e61aebe73
MD5 041ab5b91ff5d29752d958920a176ebf
BLAKE2b-256 e96e39787dce9002e5da8949d8687c4a618003b93120cbde99b58ad3160d3dc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.20-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b1ecbabb24204462327a2901ca4a76dbbdf002f669a0d51d27e4dd4cfe89d86e
MD5 65b2da4a4b06761a4a42705658a26983
BLAKE2b-256 015a048d65abe33c4a332a575a5c175306bb9d07607b8722183d27bfdf25babc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.20-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1bc0cfb2c1d6211aac1ac76a2e82e5cb28a009f2d95ecac44697f110a2c749ae
MD5 5853794351da89f11aff25c10ae2c215
BLAKE2b-256 e300e2ac71c5dab47daf918994df1b8cd4f34a161ec7a087d7a1e6f14559d428

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