command
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Oct 30, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
链路追踪示例
展示如何集成 OpenTelemetry 进行链路追踪。
功能
- 集成 OpenTelemetry
- 使用 stdout exporter(输出到终端)
- 在 handler 中创建子 span
注意:生产环境建议使用 Jaeger 或 OpenTelemetry Collector
运行
go run main.go
测试
curl http://localhost:8080/user/123
查看终端输出中的追踪信息。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.