From f77d5e45b3fbebe3043ce7bea9a9a9cf0f4d076e Mon Sep 17 00:00:00 2001 From: Kosuke Morimoto Date: Tue, 29 Aug 2023 13:12:00 +0900 Subject: [PATCH] fix Signed-off-by: Kosuke Morimoto --- internal/observability/metrics/mem/malloc/malloc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/observability/metrics/mem/malloc/malloc.go b/internal/observability/metrics/mem/malloc/malloc.go index b0051b67e22..4b26dfc48dc 100644 --- a/internal/observability/metrics/mem/malloc/malloc.go +++ b/internal/observability/metrics/mem/malloc/malloc.go @@ -54,7 +54,7 @@ func New() metrics.Metric { return &mallocMetrics{} } -func (m *mallocMetrics) View() ([]*metrics.View, error) { +func (*mallocMetrics) View() ([]*metrics.View, error) { totalFastCount, err := view.New( view.MatchInstrumentName(totalFastCountMetricsName), view.WithSetDescription(totalFastCountMetricsDescription), @@ -139,7 +139,7 @@ func (m *mallocMetrics) View() ([]*metrics.View, error) { }, nil } -func (mm *mallocMetrics) Register(m metrics.Meter) error { +func (*mallocMetrics) Register(m metrics.Meter) error { totalFastCount, err := m.AsyncInt64().Gauge( totalFastCountMetricsName, metrics.WithDescription(totalFastCountMetricsDescription),