Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestIdHeaderKey = "X-Request-ID"
View Source
var TraceIdHeaderKey = "X-Trace-ID"
Functions ¶
func PanicTrace ¶
func RecoverSetTraceId ¶ added in v0.1.19
func RecoverSetTraceId(traceId string, fn func())
func SetTraceId ¶
func SetTraceId(traceId string, fn func())
SetTraceId 给函数所在的协程设置traceId;对`std.Tracer:SetTraceId`的封装
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.