statsd

package
v0.0.0-...-89b6d9c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (metrics.Collector, error)

New creates a new Statsd metrics module

Types

type Module

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

Module represents a statsd metrics collector

func (*Module) Close

func (m *Module) Close() error

Close closes the statsd metrics collector

func (*Module) HTTPRequestTiming

func (m *Module) HTTPRequestTiming(t time.Duration, status int, method, path string)

HTTPRequestTiming send a metrics relating to a http request

Jump to

Keyboard shortcuts

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