logreporter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Println(v ...interface{})
}

Logger follows the standard log.Logger API

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter implements instruments.Reporter and simply logs metrics

func New

func New(logger Logger) *Reporter

New creates a new reporter using a logger. Uses log package's default logger if none given

func (*Reporter) Discrete

func (r *Reporter) Discrete(name string, tags []string, val float64) error

Discrete implements instruments.Reporter

func (*Reporter) Flush

func (r *Reporter) Flush() error

Flush implements instruments.Reporter

func (*Reporter) Prep

func (r *Reporter) Prep() error

Prepare implements instruments.Reporter

func (*Reporter) Sample

func (r *Reporter) Sample(name string, tags []string, dist instruments.Distribution) error

Sample implements instruments.Reporter

Jump to

Keyboard shortcuts

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