Documentation ¶
Index ¶
- Constants
- func GetAuthHeader(ctx context.Context) string
- func GetHostname(ctx context.Context) string
- func GetRequestID(ctx context.Context) uuid.UUID
- func GetRequestIDFromHeader(header http.Header) string
- func SetRequestID(ctx context.Context, requestID uuid.UUID) context.Context
- func SetRequestIDIfNotSet(ctx context.Context, requestID uuid.UUID) context.Context
Constants ¶
View Source
const RequestIDHeader = "X-Request-Id"
RequestIDHeader is the name of the header we use to return request IDs for debugging
Variables ¶
This section is empty.
Functions ¶
func GetAuthHeader ¶ added in v0.6.5
GetAuthHeader returns the Authorization Header for this particular request
func GetHostname ¶
GetHostname returns the hostname used for this particular request
func GetRequestID ¶
GetRequestID returns a per request id if one was set
func GetRequestIDFromHeader ¶
GetRequestIDFromHeader returns the request ID a response headers if present, otherwise, returns an empty string
func SetRequestID ¶
SetRequestID set the Request ID for this request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.