uber/jaeger-client-node:后端不会接收数据 [英] uber/jaeger-client-node: backend wont receive data

查看:148
本文介绍了uber/jaeger-client-node:后端不会接收数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究不同的openTracing Tracer-Implementations. 我想使用 uber/jaeger-client-node ,但后端无法接收我的踪迹.

I'm currently looking into different openTracing Tracer-Implementations. I want to use uber/jaeger-client-node but the backend won't receive my traces.

这是我所做的: 我启动了多合一的Docker镜像: docker run -d -p5775:5775/udp -p16686:16686 jaegertracing/all-in-one:latest

Here is what I did: I started the all-in-one docker image: docker run -d -p5775:5775/udp -p16686:16686 jaegertracing/all-in-one:latest

接下来,我编写了一个简单的示例应用程序: 要点

Next, i wrote a simple example application: Gist

但是当我进入Jaeger UI时,关于示例服务没有任何显示. 我做错了什么?

But when I go to Jaeger UI, nothing is shown about the example service. What did I do wrong?

谢谢

推荐答案

这里有两个问题.一个是您的代码将Jaeger客户端的端口设置为5775.该端口期望的数据模型与Node.js客户端发送的数据模型不同,您可以删除agentHostagentPort参数并依靠默认值.

There are two issues here. One is that your code sets the port for Jaeger client to 5775. This port expects a different data model than what Node.js client sends, you can remove the agentHost and agentPort parameters and rely on defaults.

第二个问题是您在运行Docker映像时未暴露所需的UDP端口.正确的命令显示在文档中,直到今天,它应该是这个(一长行):

The second issue is that you're running the Docker image without exposing the required UDP port. The correct command is shown in the documentation, as of today it should be this (one long line):

docker run -d -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp \
    -p5778:5778 -p16686:16686 -p14268:14268 jaegertracing/all-in-one:latest

这篇关于uber/jaeger-client-node:后端不会接收数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆