From 28c2ce0b53118dd4bd3906486b5e21c9b84bf98c Mon Sep 17 00:00:00 2001 From: likhita-809 <78951027+likhita-809@users.noreply.github.com> Date: Tue, 11 May 2021 17:58:47 +0530 Subject: [PATCH] v043 audit changes for telemetry/ (#9297) * v043 audit changes for version * v042 audit changes for telemetry * remove version changes in telemetry audit --- telemetry/metrics.go | 2 ++ telemetry/wrapper.go | 1 + 2 files changed, 3 insertions(+) diff --git a/telemetry/metrics.go b/telemetry/metrics.go index ca9bf7890883..53235e012bc8 100644 --- a/telemetry/metrics.go +++ b/telemetry/metrics.go @@ -64,11 +64,13 @@ type Metrics struct { prometheusEnabled bool } +// GatherResponse is the response type of registered metrics type GatherResponse struct { Metrics []byte ContentType string } +// New creates a new instance of Metrics func New(cfg Config) (*Metrics, error) { if !cfg.Enabled { return nil, nil diff --git a/telemetry/wrapper.go b/telemetry/wrapper.go index 62f50eeacb93..24722a7d63cc 100644 --- a/telemetry/wrapper.go +++ b/telemetry/wrapper.go @@ -13,6 +13,7 @@ const ( MetricLabelNameModule = "module" ) +// NewLabel creates a new instance of Label with name and value func NewLabel(name, value string) metrics.Label { return metrics.Label{Name: name, Value: value} }