Documentation ¶
Index ¶
- Variables
- func End()
- func GetTraceId(ctx context.Context) string
- func GinMiddleware(service string) gin.HandlerFunc
- func HttpInject(ctx context.Context, request *http.Request)
- func Start(c context.Context) (context.Context, string)
- func String(key string, value string) otel_zap_logger.Field
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New()
View Source
var TRACE_ID = "trace_id"
Functions ¶
func GetTraceId ¶
func GinMiddleware ¶
func GinMiddleware(service string) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.