middleware

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceRequests

type TraceRequests struct {
	// contains filtered or unexported fields
}

TraceRequests middleware

func NewTraceRequests

func NewTraceRequests(tracer tracing.Tracer, contentTypes []string, excludedPaths []string) *TraceRequests

NewTraceRequests creates a new TraceRequests middleware with the provided options

func (*TraceRequests) Handler

func (mdlw *TraceRequests) Handler(next http.Handler) http.Handler

Handler applies tracing on the request and ensures that we collect metadata from a request-response cycle. This includes uri and method of the request, headers, client ip, input, response code and content etc.

Jump to

Keyboard shortcuts

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