metrics

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 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