handlerfunc

package
v0.9.5-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLoggerTracer = func(c *gin.Context) (fields []ull.Field) {
	if trace.SpanFromContext(c.Request.Context()).SpanContext().IsValid() {
		fields = append(fields,
			ull.Any("trace_id", trace.SpanFromContext(c.Request.Context()).SpanContext().TraceID().String()),
		)
	}
	return fields
}

Functions

func LoggerHandlerFunc

func LoggerHandlerFunc(logger ull.Helper, biz func(ctx *gin.Context) (fields []ull.Field)) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL