Documentation
¶
Overview ¶
Package requestid - the request's id: in its context, in the X-Request-Id response header and in the log lines written with the context (Handler), so a page's answer and its log lines can be matched.
Index ¶
Constants ¶
View Source
const Attr = "request_id"
Attr - the log field holding the id.
View Source
const Header = "X-Request-Id"
Header - the header carrying the id (a proxy in front may send its own).
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext - the id ctx carries, "" without one.
Types ¶
Click to show internal directories.
Click to hide internal directories.