mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
.. | ||
proto | ||
config_test.go | ||
config.go | ||
const.go | ||
context_test.go | ||
context.go | ||
dapper_test.go | ||
dapper.go | ||
marshal_test.go | ||
marshal.go | ||
noop.go | ||
option.go | ||
propagation.go | ||
README.md | ||
report_test.go | ||
report.go | ||
sample_test.go | ||
sample.go | ||
span_test.go | ||
span.go | ||
tag_test.go | ||
tag.go | ||
tracer.go | ||
util_test.go | ||
util.go |
net/trace
项目简介
- 提供Trace的接口规范
- 提供 trace 对Tracer接口的实现,供业务接入使用
接入示例
- 启动接入示例
trace.Init(traceConfig) // traceConfig is Config object with value.
- 配置参考
[tracer] network = "unixgram" addr = "/var/run/dapper-collect/dapper-collect.sock"
测试
- 执行当前目录下所有测试文件,测试所有功能