diff --git a/service/history/workflowTaskHandlerCallbacks.go b/service/history/workflowTaskHandlerCallbacks.go index 8480913ed06a..34dda7568971 100644 --- a/service/history/workflowTaskHandlerCallbacks.go +++ b/service/history/workflowTaskHandlerCallbacks.go @@ -427,7 +427,7 @@ func (handler *workflowTaskHandlerCallbacksImpl) handleWorkflowTaskCompleted( completedEvent.GetEventId(), msBuilder, handler.historyEngine.searchAttributesValidator, - executionInfo.ExecutionStats, // QUESTION: is this a valid simplification? (instead of calling weContext.LoadExecutionStats()) + executionInfo.ExecutionStats, handler.metricsClient.Scope(metrics.HistoryRespondWorkflowTaskCompletedScope, metrics.NamespaceTag(namespace.String())), handler.throttledLogger, )