1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/pkg/net/trace
2019-04-11 17:07:06 +08:00
..
mocktrace Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
proto add kratos pkg 2019-02-01 15:57:43 +08:00
config_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
config.go rename Kratos to kratos 2019-04-11 15:15:11 +08:00
const.go add kratos pkg 2019-02-01 15:57:43 +08:00
context_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
context.go add kratos pkg 2019-02-01 15:57:43 +08:00
dapper_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
dapper.go add kratos pkg 2019-02-01 15:57:43 +08:00
marshal_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
marshal.go rename Kratos to kratos 2019-04-11 15:15:11 +08:00
noop.go Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
option.go add kratos pkg 2019-02-01 15:57:43 +08:00
propagation.go add kratos pkg 2019-02-01 15:57:43 +08:00
README.md add kratos pkg 2019-02-01 15:57:43 +08:00
report_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
report.go add kratos pkg 2019-02-01 15:57:43 +08:00
sample_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
sample.go Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
span_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
span.go Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
tag_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
tag.go add kratos pkg 2019-02-01 15:57:43 +08:00
tracer.go Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00
util_test.go add kratos pkg 2019-02-01 15:57:43 +08:00
util.go Merge remote-tracking branch 'origin/master' 2019-04-11 17:07:06 +08:00

net/trace

项目简介

  1. 提供Trace的接口规范
  2. 提供 trace 对Tracer接口的实现,供业务接入使用

接入示例

  1. 启动接入示例
    trace.Init(traceConfig) // traceConfig is Config object with value.
    
  2. 配置参考
    [tracer]
    network = "unixgram"
    addr = "/var/run/dapper-collect/dapper-collect.sock"
    

测试

  1. 执行当前目录下所有测试文件,测试所有功能