services

package
v0.0.0-...-e5f8ed5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricService

type MetricService interface {
	LogLatencyHistogram(begin time.Time, statusCode int, loggingMetric metrics.MetricName, customLabels map[string]string)
	LogRequestCount(statusCode int, loggingMetric metrics.MetricName)

	GetLabels(labels map[string]string) map[string]string
}

MetricService captures the exposed methods for logging performance/health metrics

func NewMetricService

func NewMetricService(deploymentCfg config.DeploymentConfig, monitoringCfg config.MonitoringConfig) (MetricService, error)

NewMetricService initializes a metricService struct

Jump to

Keyboard shortcuts

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