Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Noop = luxmetrics.NewNoOpMetrics("")
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.
Click to show internal directories.
Click to hide internal directories.