metrics

package
v1.0.1-beta4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Overview

Package metrics ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAll

func RegisterAll()

RegisterAll registers all metrics.

func RegisterError

func RegisterError(errType string, err error)

RegisterError records any errors for any lib operation.

func RegisterFunction

func RegisterFunction(label string)

RegisterFunction records number of operation.

func UpdateDuration

func UpdateDuration(label string, duration time.Duration)

UpdateDuration records the duration of the step identified by the label

func UpdateDurationFromStart

func UpdateDurationFromStart(logger *zap.Logger, label string, start time.Time)

UpdateDurationFromStart records the duration of the step identified by the label using start time

Types

type FunctionLabel

type FunctionLabel string

FunctionLabel is a name of CSI plugin operation for which we measure duration

Jump to

Keyboard shortcuts

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