Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGinContextAdapter ¶ added in v1.1.1
NewGinContextAdapter is used to run logrus/trace with gin.Context() rather than gin.Context.Request.Context(), however this will not work when ctx is wrapped (such as kitex) Deprecated Recommended solution: 1. Use gin.Context.Request.Context() when tracing 2. For gin version>=1.8.1, set engin.ContextWithFallback=true, which solve this problem perfectly.
func NewMiddleware ¶
func NewMiddleware(tracer aitracer.Tracer, opts ...Option) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.