跳转到主要内容

OpenCensus Jaeger 跟踪导出器

项目描述

pypi

安装

pip install opencensus-ext-jaeger

用法

OpenCensus Jaeger 导出器 允许您将 OpenCensus 跟踪导出到 Jaeger

from opencensus.ext.jaeger.trace_exporter import JaegerExporter
from opencensus.trace import tracer as tracer_module

tracer = tracer_module.Tracer(exporter=JaegerExporter(
    service_name='my service',
    agent_host_name='localhost',
    agent_port=6831,
))

with tracer.span(name='hello'):
    print('Hello, World!')

参考资料

项目详情


下载文件

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

源代码分发

此版本没有可用的源代码分发文件。请参阅有关生成分发存档的教程。

构建分发

opencensus_ext_jaeger-0.7.1-py2.py3-none-any.whl (14.0 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面