metrics

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopMetricsClient

func NewNoopMetricsClient() *noopMetricsClient

Types

type Timer

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

func NewTimer

func NewTimer(client metrics.Client, name string, tags metrics.Tags) *Timer

func (*Timer) Stop

func (t *Timer) Stop()

Stop the timer and send the elapsed time as milliseconds as a distribution metric

Jump to

Keyboard shortcuts

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