Documentation
¶
Index ¶
Constants ¶
View Source
const (
KeyRequestID = "x-request-id"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureRequestID ¶
EnsureRequestID retrieves the value of the X-Request-Id header. If not found it will generate a new one and set the header accordingly. Returns the resulting id.
func GetRequestID ¶
GetRequestID retrieves the request id from the request context
func RequestContext ¶
RequestContext generates a new context that includes a request id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.