metrics

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WriteMetrics

type WriteMetrics struct {
	Attempts   metrics.Counter `metric:"attempts"`
	Inserts    metrics.Counter `metric:"inserts"`
	Errors     metrics.Counter `metric:"errors"`
	LatencyOk  metrics.Timer   `metric:"latency-ok"`
	LatencyErr metrics.Timer   `metric:"latency-err"`
	RecordsOk  metrics.Counter `metric:"records-ok"`
	RecordsErr metrics.Counter `metric:"records-err"`
}

func NewWriteMetrics

func NewWriteMetrics(factory metrics.Factory, tableName string) *WriteMetrics

func (*WriteMetrics) Emit

func (t *WriteMetrics) Emit(err error, latency time.Duration, count int)

Jump to

Keyboard shortcuts

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