metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	IncWatchEvents(key string)
	IncWatchErrors(key string)
	ObserveUpdateLatency(key string, d time.Duration)
	SetRegisteredKeys(n int)
}

Metrics is the interface for SDK telemetry. Use EnableMetrics(true) in Config to enable the real implementation; when disabled, a no-op stub is used (no if-checks in hot paths).

type NoopMetrics

type NoopMetrics struct{}

NoopMetrics is a no-op implementation used when metrics are disabled.

func (NoopMetrics) IncWatchErrors

func (NoopMetrics) IncWatchErrors(_ string)

func (NoopMetrics) IncWatchEvents

func (NoopMetrics) IncWatchEvents(_ string)

func (NoopMetrics) ObserveUpdateLatency

func (NoopMetrics) ObserveUpdateLatency(_ string, _ time.Duration)

func (NoopMetrics) SetRegisteredKeys

func (NoopMetrics) SetRegisteredKeys(_ int)

Directories

Path Synopsis
Package otel implements the poya Metrics interface using OpenTelemetry.
Package otel implements the poya Metrics interface using OpenTelemetry.

Jump to

Keyboard shortcuts

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