Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 链路跟踪-准备工作.md #127

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading