Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoMetricsWithCleanup ¶
func DoMetricsWithCleanup(ctx context.Context, frequency time.Duration, lv metrics2.Liveness, doMetrics func(context.Context, time.Time) ([]metrics2.Int64Metric, error))
DoMetricsWithCleanup encapsulates the process of running a function to generate on-the-fly metrics, tracking success or failure of that generation, and cleaning up metrics which no longer exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.