metrics

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetricsExporter

func InitMetricsExporter(metricsBackend string, prometheusPort int) error

Types

type StatsReporter

type StatsReporter interface {
	ReportKeyvaultRequest(ctx context.Context, duration float64, objectType, objectName, err string)
	ReportGRPCRequest(ctx context.Context, duration float64, method, code, message string)
}

StatsReporter is the interface for reporting metrics

func NewStatsReporter

func NewStatsReporter() StatsReporter

NewStatsReporter creates a new StatsReporter

Jump to

Keyboard shortcuts

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