metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metrics constructs the metrics the application will track.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrors

func AddErrors(ctx context.Context)

AddErrors increments the errors metric by 1.

func AddGoroutines

func AddGoroutines(ctx context.Context)

AddGoroutines refreshes the goroutine metric every 100 requests.

func AddPanics

func AddPanics(ctx context.Context)

AddPanics increments the panics metric by 1.

func AddRequests

func AddRequests(ctx context.Context)

AddRequests 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