metric

package
v0.0.0-...-4a12623 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CatalogOperationID ...
	CatalogOperationID = "v2_catalog"
	// ListTagOperationID ...
	ListTagOperationID = "v2_tags"
	// ManifestOperationID ...
	ManifestOperationID = "v2_manifest"
	// BlobsOperationID ...
	BlobsOperationID = "v2_blob"
	// BlobsUploadOperationID ...
	BlobsUploadOperationID = "v2_blob_upload"
	// ReferrersOperationID ...
	ReferrersOperationID = "v2_referrers"
	// OthersOperationID ...
	OthersOperationID = "v2_others"
)

Variables

This section is empty.

Functions

func InjectOpIDMiddleware

func InjectOpIDMiddleware(opID string) func(next http.Handler) http.Handler

InjectOpIDMiddleware returns a middleware used for injecting operations ID

func Middleware

func Middleware() func(http.Handler) http.Handler

Middleware returns a middleware for handling requests

func SetMetricOpID

func SetMetricOpID(ctx context.Context, value string)

SetMetricOpID used to set operation ID for metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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