Refactor debug/trace ready for Jaeger

This commit is contained in:
Micro
2020-01-29 15:45:11 +00:00
parent 1108cc5e91
commit 62c067adcd
10 changed files with 130 additions and 36 deletions

View File

@@ -25,14 +25,14 @@ type Debug struct {
// the stats collector
stats stats.Stats
// the tracer
trace trace.Trace
trace trace.Tracer
}
func newDebug() *Debug {
return &Debug{
log: log.DefaultLog,
stats: stats.DefaultStats,
trace: trace.DefaultTrace,
trace: trace.DefaultTracer,
}
}