metrics

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(r metrics.Registry, freq time.Duration, l Logger, minLock bool)

Log outputs each metric in the given registry periodically using the given logger.

func LogOnCue

func LogOnCue(r metrics.Registry, ch chan interface{}, l Logger, minLock bool)

LogOnCue outputs each metric in the given registry on demand through the channel using the given logger

func LogScaled

func LogScaled(r metrics.Registry, freq time.Duration, scale time.Duration, l Logger, minLock bool)

LogScaled outputs each metric in the given registry periodically using the given logger. Print timings in `scale` units (eg time.Millisecond) rather than nanos.

func LogScaledOnCue

func LogScaledOnCue(r metrics.Registry, ch chan interface{}, scale time.Duration, l Logger, minLock bool)

LogScaledOnCue outputs each metric in the given registry on demand through the channel using the given logger. Print timings in `scale` units (eg time.Millisecond) rather than nanos.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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