Documentation ¶
Overview ¶
Package requestid is used to add/extract a request identifier to/from a context.Context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extract the request id from the X-Request-ID header from 'in'. If it does not exist, it is generated as a V4 UUID. The X-Request-ID is then set on 'out'. The returned context contains the request id and if tracing is enabled the request id is added to the current span.
func FromContext ¶
FromContext obtains a request id from a context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.