From 574228e8ea469b01493b54a08c9a657ea98a4ede Mon Sep 17 00:00:00 2001 From: Yichao Yang Date: Tue, 13 Sep 2022 12:26:58 -0700 Subject: [PATCH] Exclude taskAlreadyStarted error from history client logging (#3376) --- client/history/metric_client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/history/metric_client.go b/client/history/metric_client.go index da8b8c5978a..9ac49b23baa 100644 --- a/client/history/metric_client.go +++ b/client/history/metric_client.go @@ -34,6 +34,7 @@ import ( "go.temporal.io/server/common/log" "go.temporal.io/server/common/log/tag" "go.temporal.io/server/common/metrics" + serviceerrors "go.temporal.io/server/common/serviceerror" ) var _ historyservice.HistoryServiceClient = (*metricClient)(nil) @@ -84,7 +85,8 @@ func (c *metricClient) finishMetricsRecording( *serviceerror.QueryFailed, *serviceerror.NamespaceNotFound, *serviceerror.WorkflowNotReady, - *serviceerror.WorkflowExecutionAlreadyStarted: + *serviceerror.WorkflowExecutionAlreadyStarted, + *serviceerrors.TaskAlreadyStarted: // noop - not interest and too many logs default: c.throttledLogger.Info("history client encountered error", tag.Error(err), tag.ErrorType(err))