package
1.0.6
Repository: https://github.com/chanhlab/go-utils.git
Documentation: pkg.go.dev

# Functions

AddLogger logs request/response pair.
GetReqID returns a request ID from the given context if one is present.
NextRequestID generates the next request ID in the sequence.
RequestID is a middleware that injects a request ID into the context of each request.
TracingWrapper is a middleware which parses the incoming HTTP headers to create a new span correctly.

# Constants

RequestIDKey is the key that holds the unique request ID in a request context.

# Variables

RequestIDHeader is the name of the HTTP Header which contains the request id.