76
ctx context.Context,
77
executable queues.Executable,
79
>
taskTypeTagValue := queues.GetActiveTimerTaskTypeTagValue(executable.GetTask(), t.shardContext.ChasmRegistry())
80
>
81
>
namespaceTag, replicationState := getNamespaceTagAndReplicationStateByID(
82
>
t.shardContext.GetNamespaceRegistry(),
83
>
executable.GetNamespaceID(),
84
>
executable.GetWorkflowID(),
85
>
)
86
>
metricsTags := []metrics.Tag{
87
>
namespaceTag,
88
>
metrics.TaskTypeTag(taskTypeTagValue),
89
>
metrics.OperationTag(taskTypeTagValue), // for backward compatibility
90
>
}
91
>
if replicationState == enumspb.REPLICATION_STATE_HANDOVER {
92
// TODO: exclude task types here if we believe it's safe & necessary to execute
93
// them during namespace handover.