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

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

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

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

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

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

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