logging

package
v3.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

Reporter is an implementation of metrics.Reporter:

func New

func New(opts ...metrics.Option) *Reporter

New returns a configured logging reporter:

func (*Reporter) Count

func (r *Reporter) Count(metricName string, value int64, tags metrics.Tags) error

Count implements the metrics.Reporter interface Count method:

func (*Reporter) Gauge

func (r *Reporter) Gauge(metricName string, value float64, tags metrics.Tags) error

Gauge implements the metrics.Reporter interface Gauge method:

func (*Reporter) Timing

func (r *Reporter) Timing(metricName string, value time.Duration, tags metrics.Tags) error

Timing implements the metrics.Reporter interface Timing method:

Jump to

Keyboard shortcuts

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