metrics

package
v0.0.0-...-7428172 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrors

func AddErrors(ctx context.Context)

AddErrors increments number of errors by 1.

func AddPanics

func AddPanics(ctx context.Context)

AddPanics increments number of panics by 1.

func AddRequests

func AddRequests(ctx context.Context)

AddRequests increments number of requests by 1.

func Set

func Set(ctx context.Context) context.Context

func SetGoroutines

func SetGoroutines(ctx context.Context)

SetGoroutines sets number of goroutines every 100 requests.

Types

type Histogram

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

func DbHistogram

func DbHistogram(table, operation string) *Histogram

DbHistogram creates a new Histogram responsible for observing db calls.

func HttpHistogram

func HttpHistogram(r *http.Request, v *web.CtxValues) *Histogram

HttpHistogram creates a new Histogram responsible for observing http requests.

func (*Histogram) Send

func (h *Histogram) Send()

Jump to

Keyboard shortcuts

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