scaleobs

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDurationBuckets = []time.Duration{
	5 * time.Millisecond,
	10 * time.Millisecond,
	25 * time.Millisecond,
	50 * time.Millisecond,
	100 * time.Millisecond,
	250 * time.Millisecond,
	500 * time.Millisecond,
	time.Second,
	5 * time.Second,
}

Functions

func Add

func Add(m *expvar.Map, key string, delta int64)

func IntValue

func IntValue(v expvar.Var) int64

func Key

func Key(in string) string

func Set

func Set(m *expvar.Map, key string, value int64)

Types

type DurationBuckets

type DurationBuckets struct {
	// contains filtered or unexported fields
}

func NewDurationBuckets

func NewDurationBuckets(name string, bounds ...time.Duration) *DurationBuckets

func (*DurationBuckets) Count

func (b *DurationBuckets) Count() int64

func (*DurationBuckets) Observe

func (b *DurationBuckets) Observe(elapsed time.Duration)

func (*DurationBuckets) Value

func (b *DurationBuckets) Value(label string) int64

Jump to

Keyboard shortcuts

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