942
// GetWorkflowExecutionHistory returns the history of specified workflow execution. It fails with 'EntityNotExistError' if specified workflow
943
// execution in unknown to the service.
944
>
func (wh *WorkflowHandler) GetWorkflowExecutionHistory(ctx context.Context, request *workflowservice.GetWorkflowExecutionHistoryRequest) (_ *workflowservice.GetWorkflowExecutionHistoryResponse, retError error) {
workflow_handler.go
945
>
defer log.CapturePanic(wh.logger, &retError)
946
>
947
>
if request == nil {
948
return nil, errRequestNotSet
949
}
950
952
return nil, err
953
}
954
956
request.MaximumPageSize = int32(wh.config.HistoryMaxPageSize(request.GetNamespace()))
957
}
958
959
>
enums.SetDefaultHistoryEventFilterType(&request.HistoryEventFilterType)
workflow_handler.go
960
>
961
>
namespaceID, err := wh.namespaceRegistry.GetNamespaceID(namespace.Name(request.GetNamespace()))
962
>
if err != nil {
963
return nil, err
964
}
965
966
// force limit page size if exceed
968
wh.throttledLogger.Warn("GetHistory page size is larger than threshold",
969
tag.WorkflowID(request.Execution.GetWorkflowId()),