metrics

package
v0.0.0-...-1385562 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package metrics cosntructs the metrics the application will track.

Index

Constants

View Source
const Key ctxKey = 1

Key is how metric values are stored/retrieved.

Variables

This section is empty.

Functions

func AddErrors

func AddErrors(ctx context.Context)

AddPanics increments the panics metric by 1.

func AddGoroutines

func AddGoroutines(ctx context.Context)

AddPanics increments the panics metric by 1.

func AddPanics

func AddPanics(ctx context.Context)

AddPanics increments the panics metric by 1.

func AddRequests

func AddRequests(ctx context.Context)

AddPanics increments the panics metric by 1.

func Set

func Set(ctx context.Context) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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