From 576266f0a6ef083fa2565d7113227e3a98fdb344 Mon Sep 17 00:00:00 2001 From: Ed Snible Date: Wed, 15 Dec 2021 11:17:52 -0500 Subject: [PATCH] Log problems communicating with Elasticsearch (#3451) --- plugin/storage/es/spanstore/reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/storage/es/spanstore/reader.go b/plugin/storage/es/spanstore/reader.go index 5bba2aee665..7458629efd6 100644 --- a/plugin/storage/es/spanstore/reader.go +++ b/plugin/storage/es/spanstore/reader.go @@ -573,6 +573,7 @@ func (s *SpanReader) findTraceIDs(ctx context.Context, traceQuery *spanstore.Tra searchResult, err := searchService.Do(ctx) if err != nil { + s.logger.Info("es search services failed", zap.Any("traceQuery", traceQuery), zap.Error(err)) return nil, fmt.Errorf("search services failed: %w", err) } if searchResult.Aggregations == nil {