metrics

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetMetrics

func ResetMetrics(t *testing.T)

ResetMetrics resets the global state of OpenCensus metrics. Must be called between unit tests.

func UnregisterMetrics

func UnregisterMetrics()

UnregisterMetrics unregisters the metrics that were registered in the global state of OpenCensus. Can be used instead of ResetMetrics to avoid panics in tests that already call metrics.MustRegisterEventProcessingStatsView.

Types

This section is empty.

Jump to

Keyboard shortcuts

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