From 3d274c94928bb7fcccb683e613ba9d96359a2980 Mon Sep 17 00:00:00 2001 From: vankichi Date: Tue, 16 Apr 2024 11:50:23 +0900 Subject: [PATCH] :bug: Fix build error and add comment Signed-off-by: vankichi --- pkg/tools/benchmark/job/usecase/benchmarkd.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/tools/benchmark/job/usecase/benchmarkd.go b/pkg/tools/benchmark/job/usecase/benchmarkd.go index 6f8e26d7721..b78a353a18d 100644 --- a/pkg/tools/benchmark/job/usecase/benchmarkd.go +++ b/pkg/tools/benchmark/job/usecase/benchmarkd.go @@ -75,9 +75,11 @@ func New(cfg *config.Config) (r runner.Runner, err error) { if err != nil { return nil, err } - clientInterceptors = append(clientInterceptors, "metric"} + // Add interceptors regardless of whether it is set in config. + // Because it is the benchmark job and requires metrics for measure benchmark result. + clientInterceptors = append(clientInterceptors, "metric") if cfg.Observability.Trace.Enabled { - clientInterceptors = append(clientInterceptors, "trace"} + clientInterceptors = append(clientInterceptors, "trace") } }