From 6e354283d25643562860e743fb53ddd9399c2e2d Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:57:55 +0200 Subject: [PATCH] Autoinstrumentation: Don't log errors in partial response that produce status=cancelled (#1100) --- backend/data_adapter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/data_adapter.go b/backend/data_adapter.go index 5c2d63508..827efd85d 100644 --- a/backend/data_adapter.go +++ b/backend/data_adapter.go @@ -41,7 +41,7 @@ func (a *dataSDKAdapter) QueryData(ctx context.Context, req *pluginv2.QueryDataR // and if there's no plugin error var hasPluginError, hasDownstreamError bool for refID, r := range resp.Responses { - if r.Error == nil { + if r.Error == nil || isCancelledError(r.Error) { continue }