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(config={"agent_host_name": "127.0.0.1", "agent_port": 6831})

# 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)

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 -f

Project details


Download files

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

Source Distribution

rust_python_jaeger_reporter-0.1.22.tar.gz (31.2 MB view details)

Uploaded Source

Built Distributions

rust_python_jaeger_reporter-0.1.22-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (273.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.22-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (273.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.22-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (274.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

rust_python_jaeger_reporter-0.1.22-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (274.0 kB view details)

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

File details

Details for the file rust_python_jaeger_reporter-0.1.22.tar.gz.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22.tar.gz
Algorithm Hash digest
SHA256 d0adbef783dad407aac901c586687349e4d0c6ff34c92d47d37f2b4d6a673a99
MD5 73ffbe6923a6a73c4b9b18145f8449d7
BLAKE2b-256 b4fbfc79b83698308121797745e5bef4233537299d6747c4546c5734bc27c2ab

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.22-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7e51d56cc18cd09176ff113382b6df5461783a5a0494eb743ac19e92e22264fc
MD5 ea84de4ba1ac2c239e22b1df629755f0
BLAKE2b-256 9739b37e3f98763d6a51fbbd532f508fa3b1e95b9d0bff0b833b6d79a0ed4454

See more details on using hashes here.

File details

Details for the file rust_python_jaeger_reporter-0.1.22-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3a43ee80e1e783bb26293b9814f7d93de6caeb9d9adb1655bdf23d86997db6c8
MD5 55e55f30de5acca29f7c2aa51efedbbe
BLAKE2b-256 3dc7c75fa55202e83efe138e1a2cfb929429bd91c42caf5c8dae51d8fc789d1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d93318d589e14d1bb6a5722773d05d86e472701c59d0049828da7b79780992a
MD5 2e0416937ed8aee73da13c6ee35bd0d3
BLAKE2b-256 016976660368ccc6d31b3a943f667852b1cf3286841e4e6385fda864ecb3720c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 766b96fd8682db90816740d7cd8025b3f72ee07adeed414b2cf024f6a3090d8a
MD5 4dcb394b90f6f71c47c25986fbabc6a3
BLAKE2b-256 54031e47589160384897ae8f796025d51bf6d7937c912227e941e928eace79f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6931f7cc95b6e99024ae44060e3f108af66066befdcccc4190eef8e1d02c1e40
MD5 e2f8c75ecaa77edb61d65ed806e53fdc
BLAKE2b-256 80e6807addeb4eb49c3e1539bcdc59c308161a2cad2a3a77777a94d188de025c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rust_python_jaeger_reporter-0.1.22-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 15b36ff6bcecf9dc282fe23b2412237c61151b3cca1feb842e98fa0d0d027cf0
MD5 eea117e6fe992379ca5488d493dece9b
BLAKE2b-256 41511b406b9da9a97f890ee4dfd91920f7710c46a89dd890a1d7a52620a261c8

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