Documentation ¶
Overview ¶
Package reqid creates request IDs and stores them in Contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the request ID stored in ctx, if any.
func FromSubContext ¶
FromSubContext returns the sub-request ID stored in ctx, if any.
func NewContext ¶
NewContext returns a new Context that carries reqid. It also adds a log prefix to print the request ID using package chain/log.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.