metrics

package
v0.0.0-...-c29186b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 2 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