2 Star 15 Fork 1

Hyperledger/besu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Tracing

Hyperledger Besu integrates with the open-telemetry project to integrate tracing reporting.

This allows reporting all JSON-RPC traffic as traces.

To try out this example, start the Open Telemetry Collector and the Zipkin service with:

$> docker-compose up

Start besu with:

$> OTEL_RESOURCE_ATTRIBUTES="service.name=besu-dev" OTEL_EXPORTER_OTLP_METRIC_INSECURE=true OTEL_EXPORTER_OTLP_SPAN_INSECURE=true ./gradlew run --args="--network=dev --rpc-http-enabled --metrics-enabled --metrics-protocol=opentelemetry"

Try interacting with the JSON-RPC API. Here is a simple example using cURL:

$> curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":53}' http://localhost:8545

Open the Zipkin UI by browsing to http://localhost:9411/

You will be able to see the detail of your traces.

References:

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyperledger/besu.git
git@gitee.com:hyperledger/besu.git
hyperledger
besu
besu
main

搜索帮助