在 AWS Xray 中看不到痕迹

问题描述

我正在尝试使用 opencensus 在 AWS xray 上上传一些跟踪记录。 痕迹的路线是这样的:

client -> opencensus agent -> xray

我正在使用具有此配置的 docker-compose.yml:

@H_404_8@version: '3.7' services: #login login: build: context: . dockerfile: Dockerfile hostname: login ports: - 8080:8080 volumes: - ./src:/app #ocagent ocagent: image: omnition/opencensus-agent volumes: - ./ocagent-config.yaml:/conf/ocagent-config.yaml #xray xray: image: amazon/aws-xray-daemon volumes: - ./.aws/:/root/.aws/ command: -o -n eu-west-1 --bind=xray:2000

我的 opencensus 导出器到 aws 的配置文件是这样的:

@H_404_8@exporters: aws-xray: region: "eu-west-1" version: "latest" buffer_size: 200

上传了凭据作为环境变量。

当我运行 docker-compose up 时,我的服务启动并且一切正常,但跟踪没有显示在控制台中,似乎跟踪在路由中丢失了(可能是因为配置错误)。 你能帮我吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)