Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Jul 20, 2024
1 parent 90176e2 commit 3a937b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/jaeger/internal/extension/jaegerquery/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (s *server) createMetricStorage(host component.Host) (metricsstore.Reader,
// metricsReader, ok := opts.InitMetricStorage(mf, s.telset.Logger)
metricsReader, err := mf.CreateMetricsReader()
if errors.Is(err, storage.ErrMetricStorageNotConfigured) || errors.Is(err, storage.ErrMetricStorageNotSupported) {
s.telset.Logger.Info("Metric storage not created", zap.String("reason", err.Error()))
s.telset.Logger.Info("Metric storage not created", zap.Error(err))
return disabled.NewMetricsReader()

Check warning on line 149 in cmd/jaeger/internal/extension/jaegerquery/server.go

View check run for this annotation

Codecov / codecov/patch

cmd/jaeger/internal/extension/jaegerquery/server.go#L146-L149

Added lines #L146 - L149 were not covered by tests
}
return metricsReader, err

Check warning on line 151 in cmd/jaeger/internal/extension/jaegerquery/server.go

View check run for this annotation

Codecov / codecov/patch

cmd/jaeger/internal/extension/jaegerquery/server.go#L151

Added line #L151 was not covered by tests
Expand Down

0 comments on commit 3a937b3

Please sign in to comment.