requestmeta

package
v1.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PropagationStringForRequestMetadata string = "x-request-metadata-propagation-string"
	// HeaderPropagationStringForRequestLogging is used for backwards compatibility
	HeaderPropagationStringForRequestLogging string = "x-http-header-forwarding-logging"
)
View Source
const (
	SourceAPI   = "api"
	SourceRuler = "ruler"
)
View Source
const (
	LoggingHeadersKey = "x-request-logging-headers-key"
)
View Source
const RequestIdKey = "x-cortex-request-id"
View Source
const RequestSourceKey = "x-cortex-request-source"

Variables

This section is empty.

Functions

func ContextWithRequestId

func ContextWithRequestId(ctx context.Context, reqId string) context.Context

func ContextWithRequestMetadataMap

func ContextWithRequestMetadataMap(ctx context.