metricsservice

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New create and return new Metrics Service

func WrapPluginMetrics

func WrapPluginMetrics(m hostservices.MetricsService, log hclog.Logger, labels ...telemetry.Label) telemetry.Metrics

WrapPluginMetrics returns a Metrics implementation that wraps the Metrics Host Service Additionally, labels common to the module can also be set, and will be added to all resulting metrics calls. This enables usage of common functionality related to the Metrics interface from a plugin. Any errors are logged, but not returned.

Types

type Config

type Config struct {
	Metrics telemetry.Metrics
}

Config for the metrics host service

Jump to

Keyboard shortcuts

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