Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToOutgoingContext ¶
AppendToOutgoingContext returns a context with the request-id added to the gRPC metadata.
func FromContext ¶
FromContext returns a request ID from gRPC metadata if available in ctx.
func Get ¶
Get reads the Request-ID and X-Request-ID HTTP header from an `*http.Request` If no header is set, an empty string is returned
func NewMetadata ¶
NewMetadata constructs gRPC metadata with the request ID set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.