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.
Click to show internal directories.
Click to hide internal directories.