跳转到主要内容

一个为python `jaeger-client`提供的更快报告器,在本地后台线程中报告跨度。

项目描述

Rust Jaeger Python 客户端

PyPI PyPI - Format

一个为python jaeger-client提供的更快报告器,在本地后台线程中报告跨度。

此版本相对未经验证,因此请自行承担风险!(您可能需要手动将此类封装在python中,以确保对report_span的调用不会失败)。

用法

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)

构建

由于使用PyO3库,需要夜间的rust编译器。可以使用Maturin来开发、测试和发布库。

发布到PyPI

根据maturin文档,我们使用docker镜像为各种python版本构建二进制轮文件。

docker run -it --rm -v $(pwd):/io konstin2/maturin publish -f

项目详情


下载文件

下载适合您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

rust_python_jaeger_reporter-0.1.23.tar.gz (11.6 MB 查看哈希值)

上传时间: 源代码

构建分发

rust_python_jaeger_reporter-0.1.23-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.0 kB 查看哈希值)

上传时间: PyPy manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.9 kB 查看哈希值)

上传时间: PyPy manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.5 kB 查看哈希值)

上传时间: PyPy manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.0 kB 查看哈希值)

上传时间: PyPy manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.4 kB 查看哈希值)

上传时间: CPython 3.12 manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.5 kB 查看哈希值)

上传时间: CPython 3.11 manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.5 kB 查看哈希值)

上传时间: CPython 3.10 manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301.1 kB 查看哈希值)

上传时间: CPython 3.9 manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.1 kB 查看哈希值)

上传时间: CPython 3.8 manylinux: glibc 2.17+ x86-64

rust_python_jaeger_reporter-0.1.23-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.8 kB 查看哈希)

上传时间 CPython 3.7m manylinux: glibc 2.17+ x86-64

由以下支持