Skip to main content

python `jaeger-client` 的更快报告器,报告跨越本机后台线程。

项目描述

Rust Jaeger Python 客户端

派皮 PyPI - 格式

jaeger-client用于报告跨本机后台线程的python 的更快报告器。

这是相对未经测试的,因此使用风险自负!(您可能希望在 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.22.tar.gz (31.2 MB 查看哈希

已上传 source

内置发行版