Elasticsearch: Mark elasticsearch errors as downstream (#96152)

Elasticsearch: mark elasticsearch errors as downstream
This commit is contained in:
Isabella Siu
2024-11-12 08:46:31 -05:00
committed by GitHub
parent 9df0f8a98d
commit 749f59b3e3
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ func parseResponse(ctx context.Context, responses []*es.SearchResponse, targets
resSpan.End()
logger.Error("Processing error response from Elasticsearch", "error", string(me), "query", string(mt))
errResult := getErrorFromElasticResponse(res)
result.Responses[target.RefID] = errorsource.Response(errorsource.PluginError(errors.New(errResult), false))
result.Responses[target.RefID] = errorsource.Response(errorsource.DownstreamError(errors.New(errResult), false))
continue
}