metrics

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TagOperation is a tag for capturing the operation type, e.g. build,
	// deploy, release
	TagOperation = tag.MustNewKey("operation")
)

Functions

func CountOperation

func CountOperation(ctx context.Context, operationName string)

CountOperation records a single incremental value for an operation

func MeasureOperation

func MeasureOperation(ctx context.Context, lastWriteAt time.Time, operationName string)

MeasureOperation records the duration of an operation and upserts the operation value into the TagOperation tag

Types

This section is empty.

Jump to

Keyboard shortcuts

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