metrics

package
v0.0.0-...-e979ea2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(ctx context.Context)

AddError increments the errors metric by 1.

func AddGoroutines

func AddGoroutines(ctx context.Context)

AddGoroutines refreshes the goroutine metric every 10 requests.

func AddPanic

func AddPanic(ctx context.Context)

AddPanic increments the panics metric by 1.

func AddRequest

func AddRequest(ctx context.Context)

AddRequest increments the request metric by 1.

func Set

func Set(ctx context.Context) context.Context

Set sets the metrics data into the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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