middleware

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Correlation

func Correlation() gin.HandlerFunc

func Metrics

func Metrics() gin.HandlerFunc

Metrics is a middleware that will send metrics for every request

func MetricsWithSampleRate added in v1.2.2

func MetricsWithSampleRate(rate float32) (gin.HandlerFunc, error)

MetricsWithSampleRate is a middleware with adjustable sample rate that will send metrics for every request

func RequestLogger

func RequestLogger(excludeSimpleHealth bool, excludePathsInRegexp ...string) gin.HandlerFunc

func SetCorrelation

func SetCorrelation(req *http.Request, resp http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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