common

package
v0.0.28-test3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 13 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

func GetRecoveryOpts

func GetRecoveryOpts() []recovery.Option

func GetRetryOptions

func GetRetryOptions() []retry.CallOption

func ParseStack

func ParseStack(stack string) (string, string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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