Skip to content

Commit

Permalink
Update 链路跟踪-准备工作.md
Browse files Browse the repository at this point in the history
  • Loading branch information
houseme authored Dec 18, 2024
1 parent 3bbae76 commit ac4d66f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ description: '在GoFrame框架中使用Jaeger实现链路追踪。我们将通
```bash
docker run --rm --name jaeger \
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
-p 14250:14250 \
-p 14268:14268 \
-p 14269:14269 \
-p 9411:9411 \
jaegertracing/all-in-one:1.55
jaegertracing/all-in-one:1.64.0
```

`all-in-one` V1 相关文档地址:[https://www.jaegertracing.io/docs/1.64/getting-started/](https://www.jaegertracing.io/docs/1.64/getting-started/)

`all-in-one` V2 相关文档地址:[https://www.jaegertracing.io/docs/2.1/getting-started/](https://www.jaegertracing.io/docs/2.1/getting-started/)

如果 `docker` 镜像拉取太慢,您可以尝试修改 `docker` 拉取站点的镜像地址,例如: [http://mirrors.ustc.edu.cn/help/dockerhub.html?highlight=docker](http://mirrors.ustc.edu.cn/help/dockerhub.html?highlight=docker)

镜像启动后,通过 [http://localhost:16686](http://localhost:16686/) 可以打开 `Jaeger UI`
Expand All @@ -55,4 +56,4 @@ docker run --rm --name jaeger \

## OTLP GRPC注册封装

为方便开发者使用,我们通过社区模块的形式,已经封装好了对 `otelgrpc` 的初始化逻辑,代码地址: [https://github.com/gogf/gf/tree/master/contrib/trace/otlpgrpc](https://github.com/gogf/gf/tree/master/contrib/trace/otlpgrpc)
为方便开发者使用,我们通过社区模块的形式,已经封装好了对 `otelgrpc` 的初始化逻辑,代码地址: [https://github.com/gogf/gf/tree/master/contrib/trace/otlpgrpc](https://github.com/gogf/gf/tree/master/contrib/trace/otlpgrpc)

0 comments on commit ac4d66f

Please sign in to comment.