Documentation ¶
Index ¶
- Constants
- func CustomTraceIdContext(ctx context.Context) context.Context
- func GetGinTraceId(c *gin.Context) string
- func GetTraceIdContext(ctx context.Context) string
- func SetCustomTraceId(ctx context.Context, traceId string) context.Context
- func SetGinTraceId() gin.HandlerFunc
- func SetGinTraceIdContext(ctx context.Context, c *gin.Context) context.Context
Constants ¶
View Source
const Nil = "%!s(<nil>)"
Variables ¶
This section is empty.
Functions ¶
func CustomTraceIdContext ¶
CustomTraceIdContext 自定义设置跟踪编号上下文
func GetTraceIdContext ¶
GetTraceIdContext 通过上下文获取跟踪编号
func SetCustomTraceId ¶ added in v1.0.52
SetCustomTraceId 自定义设置跟踪编号上下文
func SetGinTraceId ¶
func SetGinTraceId() gin.HandlerFunc
SetGinTraceId 设置跟踪编号 https://www.jianshu.com/p/2a1a74ad3c3a
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.