Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) hostservices.MetricsServiceServer
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 ¶
Click to show internal directories.
Click to hide internal directories.