metrics

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Noop is a no-op metrics instance.

Functions

func NewNoOpMetrics

func NewNoOpMetrics(namespace string) luxmetrics.Metrics

NewNoOpMetrics creates a no-op metrics instance for testing.

func NewRegistry

func NewRegistry() *prometheus.Registry

NewRegistry creates a new prometheus registry. This is a wrapper to avoid importing prometheus directly in test files.

func NewTestRegistry

func NewTestRegistry() *prometheus.Registry

NewTestRegistry creates a new prometheus registry for testing. Alias for NewRegistry to make intent clear in tests.

func WrapPrometheusRegistry

func WrapPrometheusRegistry(registry *prometheus.Registry) luxmetrics.Registry

WrapPrometheusRegistry is deprecated - just use the registry directly since luxmetrics.Registry is now an alias for *prometheus.Registry

Types

This section is empty.

Jump to

Keyboard shortcuts

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