Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachTraceID ¶
AttachTraceID 为 context 附加 trace_id
func GetTraceID ¶
GetTraceID 从 context 中获取 trace_id,如果获取失败,则重新生成
func NewContextWithTraceID ¶
NewContextWithTraceID 从 context.Background 生成一个新的 context,并附加 trace_id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.