331
ctx context.Context,
332
request *DeleteWorkflowExecutionRequest,
334
>
caller := headers.GetCallerInfo(ctx).CallerName
335
>
startTime := time.Now().UTC()
336
>
defer func() {
337
>
p.healthSignals.Record(request.ShardID, time.Since(startTime), retErr)
338
>
var workflowID, runID string
339
>
if request != nil {
340
>
workflowID = request.WorkflowID
341
>
runID = request.RunID
342
>
}
343
>
p.recordRequestMetrics(metrics.PersistenceDeleteWorkflowExecutionScope, caller, time.Since(startTime), retErr)
344
>
p.recordDataLossMetrics(metrics.PersistenceDeleteWorkflowExecutionScope, caller, retErr, workflowID, runID)
345
}()
347
}
348