Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTraceIdName = "trace_id" DefaultSpanIdName = "span_id" DefaultParentIdName = "parent_id" // 默认分隔符 DefaultSeparator = ":" )
定义默认的
Variables ¶
View Source
var LogTraceKey struct{} //格式 traceid:spanid:parentid 46b1506e7332f7c1:7f75737aa70629cc:3bb947500f42ad71:1
定义日志中Trace的key
View Source
var NoTracerInfo = errors.New("no trace info")
定义错误
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.