metrics

package
v1.16.103 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCounter

func AssertCounter(t *testing.T, sink *metrics.InmemSink, name string, value float64)

Asserts that a counter metric has the given value

func AssertGauge

func AssertGauge(t *testing.T, sink *metrics.InmemSink, name string, value float32)

Asserts that a gauge metric has the current value

func TestSetupMetrics

func TestSetupMetrics(t *testing.T, serviceName string) *metrics.InmemSink

Returns an in memory metrics sink for tests to assert metrics are emitted. Do not enable t.Parallel() since this relies on the global metrics instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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