Documentation ¶
Overview ¶
Package correlation provides support for correlation id's and propagation.
Index ¶
Constants ¶
View Source
const ( // HeaderID constant. HeaderID string = "X-Correlation-Id" // ID constant. ID string = "correlationID" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithID ¶
ContextWithID sets a correlation ID to a context.
func IDFromContext ¶
IDFromContext returns the correlation ID from the context. If no ID is set a new one is generated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.