如何解决如果使用 jaeger 可执行文件运行,Jaeger 不会跨越跟踪
我正在使用 Helidon 版本 1.4.8 的 Helidon MP 应用程序配置 Jaeger Tracing。我在 pom.xml 中添加了以下依赖项,在 application.yaml 中添加了配置。
<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing-jaeger</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.microprofile.tracing</groupId>
<artifactId>helidon-microprofile-tracing</artifactId>
</dependency>
application.yaml 中的配置
tracing:
service: "rest-service-manager"
protocol: "http" # JAEGER_ENDPOINT (if not udp,http is expected and endpoint is filled)
host: "localhost" # JAEGER_ENDPOINT
paths:
- path: "/metrics"
enabled: true
- path: "/health"
enabled: true
- path: "/brm"
enabled: true
propagation: "jaeger" # JAEGER_PROPAGATION either "jaeger" or "b3"
log-spans: true # JAEGER_REPORTER_LOG_SPANS
max-queue-size: 42 # JAEGER_REPORTER_MAX_QUEUE_SIZE
flush-interval-ms: 10001 # JAEGER_REPORTER_FLUSH_INTERVAL
现在,如果我使用带有命令 docker run --rm -it --name jaeger -p 5778:5778 -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:1.23
的 docker image 运行 jaeger,那么我可以在端口 16686 上运行的 jaeger UI 上获取跟踪范围。
但如果我使用从 https://www.jaegertracing.io/download/ 下载的可执行二进制文件运行 jaeger,我将无法获得跟踪范围。我正在使用命令 ./jaeger-all-in-one
来运行二进制文件
我也尝试运行命令 ./jaeger-all-in-one --collector.http-server.host-port=:14268
有人可以帮忙吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。