433
}
434
435
>
if namespaceEntry, err := shardContext.GetNamespaceRegistry().GetNamespaceByID(
transaction_impl.go
436
>
namespace.ID(request.ResetWorkflowSnapshot.ExecutionInfo.NamespaceId),
437
>
); err == nil {
438
>
emitMutationMetrics(
439
>
shardContext,
440
>
namespaceEntry,
441
>
request.ArchetypeID,
442
>
&resp.ResetMutableStateStats,
443
>
resp.NewMutableStateStats,
444
>
resp.CurrentMutableStateStats,
445
>
)
446
>
emitCompletionMetrics(
447
>
shardContext,
448
>
namespaceEntry,
449
>
snapshotToCompletionMetric(
450
>
namespaceState(shardContext.GetClusterMetadata(), &resetWorkflowFailoverVersion),
451
>
&request.ResetWorkflowSnapshot,
452
>
request.ResetWorkflowEvents,
453
>
isWorkflow,
454
>
),
455
>
snapshotToCompletionMetric(
456
>
namespaceState(shardContext.GetClusterMetadata(), newWorkflowFailoverVersion),
457
>
request.NewWorkflowSnapshot,
458
>
request.NewWorkflowEvents,
459
>
isWorkflow,
460
>
),
461
>
mutationToCompletionMetric(
462
>
namespaceState(shardContext.GetClusterMetadata(), currentWorkflowFailoverVersion),
463
>
request.CurrentWorkflowMutation,
464
>
request.CurrentWorkflowEvents,
465
>
isWorkflow,
466
>
),
467
>
)
468
>
}
469
>
return resp, nil
470
}
471