Skip to content

Commit

Permalink
🐛 Fix build error and add comment
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi committed Apr 16, 2024
1 parent 3e81caa commit 3d274c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/tools/benchmark/job/usecase/benchmarkd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down

0 comments on commit 3d274c9

Please sign in to comment.