metric

package
v0.0.0-...-1bf90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInMemoryObjectCount

func AddInMemoryObjectCount(num float64)

func IncDBRequestCounter

func IncDBRequestCounter(operation, status string)

func IncExternalRequestCounter

func IncExternalRequestCounter(status, url string)

func IncRequestCounter

func IncRequestCounter()

func IncResponseCounter

func IncResponseCounter(status, method, endpoint string)

func Init

func Init(_ context.Context) error

func ObserveDBResponseTime

func ObserveDBResponseTime(operation, status string, time float64)

func ObserveExternalResponseTime

func ObserveExternalResponseTime(status, url string, time float64)

func ObserveResponseTime

func ObserveResponseTime(status, endpoint string, time float64)

func SubInMemoryObjectCount

func SubInMemoryObjectCount(num float64)

Types

type Metrics

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

Jump to

Keyboard shortcuts

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