From 1ecf20e0ab68093ad469d97f01a2e9451b337e4f Mon Sep 17 00:00:00 2001 From: Zhang Xin Date: Mon, 25 Nov 2024 07:32:07 +0800 Subject: [PATCH] Update storage/spanstore/metrics/decorator.go Co-authored-by: Yuri Shkuro Signed-off-by: Zhang Xin --- storage/spanstore/metrics/decorator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/spanstore/metrics/decorator.go b/storage/spanstore/metrics/decorator.go index c141cfcc81c..73b88b3d2cd 100644 --- a/storage/spanstore/metrics/decorator.go +++ b/storage/spanstore/metrics/decorator.go @@ -78,7 +78,7 @@ func (m *ReadMetricsDecorator) FindTraceIDs(ctx context.Context, traceQuery *spa } // GetTrace implements spanstore.Reader#GetTrace -func (m *ReadMetricsDecorator) GetTrace(ctx context.Context, traceGet spanstore.GetTraceParameters) (*model.Trace, error) { +func (m *ReadMetricsDecorator) GetTrace(ctx context.Context, query spanstore.GetTraceParameters) (*model.Trace, error) { start := time.Now() retMe, err := m.spanReader.GetTrace(ctx, traceGet) m.getTraceMetrics.emit(err, time.Since(start), 1)