metrics

package
v0.0.0-...-40cf777 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package metrics cosntructs 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 increments the goroutines metric by 1.

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