metrics

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusSuccess string = "success"
	StatusFailure string = "failure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	IncrementVector(values ...string)
}

func MustRegisterCounter

func MustRegisterCounter(name, namespace, subsystem string, labels []string) Counter

func RegisterCounter

func RegisterCounter(name, namespace, subsystem string, labels []string) (Counter, error)

type Histogram

type Histogram interface {
	ObserveResponseTime(duration time.Time, values ...string)
}

func MustRegisterHistogram

func MustRegisterHistogram(name, namespace, subsystem string, labels []string) Histogram

func RegisterHistogram

func RegisterHistogram(name, namespace, subsystem string, labels []string) (Histogram, error)

Jump to

Keyboard shortcuts

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