2 个不稳定版本
0.2.0 | 2021 年 12 月 13 日 |
---|---|
0.1.0 | 2021 年 11 月 25 日 |
#24 in #github-action
17KB
191 行
gh-action-trace
gh-action-trace
是一个二进制文件,可以用来通过从 GitHub API 获取元数据来生成 GitHub Action 运行的跟踪。
安装
cargo install gh-action-trace
用法
首先,在本地运行 jaeger 收集跟踪。
docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 jaegertracing/all-in-one:latest --log-level debug
现在,运行二进制文件以生成并发送跟踪到 Jaeger。虽然二进制文件可以在没有 GitHub 令牌的情况下工作,但**建议**通过二进制文件的 --token
标志传递 GitHub 令牌,以避免被限速。
$ gh-action-trace --owner linkerd --repo linkerd2 --runs 100 --token <GITHUB_TOKEN>
Completed workflow CI 10/10 [========================================] (0s)
Completed workflow Coverage 10/10 [========================================] (0s)
Completed workflow CodeQL 10/10 [========================================] (0s)
Completed workflow Integration tests 10/10 [========================================] (0s)
Completed workflow KinD integration 10/10 [========================================] (0s)
Completed workflow Lock Threads 10/10 [========================================] (0s)
Completed workflow Policy Controller 10/10 [========================================] (0s)
Completed workflow Release 10/10 [========================================] (0s)
Completed workflow Static checks 10/10 [========================================] (0s)
Completed workflow Unit tests 10/10 [========================================] (0s)
Completed workflow CI 10/10 [========================================] (0s)
您应该在 Jaeger UI 中看到跟踪。 :)
依赖项
~26–41MB
~759K SLoC