metrics

package
v0.0.0-...-2e936b0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 3 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 errors metric.

func AddGoroutines

func AddGoroutines(ctx context.Context)

AddGoroutines adds goroutines metric every 100 requests.

func AddPanics

func AddPanics(ctx context.Context)

AddPanics increments panics metric.

func AddRequest

func AddRequest(ctx context.Context)

AddRequest adds requests to the requests metric.

func Set

func Set(ctx context.Context) context.Context

Set sets the metrics value 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