metricstest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(t *testing.T) metricdata.ResourceMetrics

Collect metrics from test reader.

func Init

func Init(t *testing.T)

Init should be called at the beginning of a test to wire up all global metrics to a test reader. Test case should not be running in parallel with any other part of the program that interacts with metrics.

func RequireActiveRequestsMetric

func RequireActiveRequestsMetric(t *testing.T, mets metricdata.ResourceMetrics, model string, val int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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