Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CorrelationIDKey      = "correlationid"
	OperationIDKey        = "operationid"
	ARMClientRequestIDKey = "armclientrequestid"
	RequestIDLogKey       = "request-id"

	// Details can be found here:
	// https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-details.md#client-request-headers
	RequestCorrelationIDHeader = "x-ms-correlation-request-id"
	// RequestAcsOperationIDHeader is the http header name ACS RP adds for operation ID (AKS specific)
	RequestAcsOperationIDHeader = "x-ms-acs-operation-id"
	// RequestARMClientRequestIDHeader  Caller-specified value identifying the request, in the form of a GUID
	RequestARMClientRequestIDHeader = "x-ms-client-request-id"
	// RequestIDMetadataKey is the key in the gRPC
	// metadata.
	RequestIDMetadataHeader = "x-request-id"
)

Variables

Functions

func GetFields

func GetFields(ctx context.Context) logging.Fields

GetFields returns a logging.Fields object with the request ID and headers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL