stats

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

stats is a very lightweight wrapper around the dogstatsd client, which gives us a package-level function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() statsd.ClientInterface

func Configure

func Configure(namespace string, host string, port int, tags map[string]string) error

func DistributionMs added in v0.2.2

func DistributionMs(name string, tags []string, value time.Duration)

func IncrSuccessOrFail

func IncrSuccessOrFail(err error, prefix string, tags []string)

func WithTiming

func WithTiming(name string, tags []string, f func()) time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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