create new tracking key for metacluster traces

This commit is contained in:
Jon Fu 2022-10-05 12:08:36 -07:00
parent 30902da0d2
commit 299b1b32e2
2 changed files with 3 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ ACTOR Future<Void> readTransactionSystemState(Reference<ClusterRecoveryData> sel
.detail("MetaclusterId", metaclusterId)
.detail("DataClusterName", clusterName)
.detail("DataClusterId", clusterId)
.trackLatest(self->recoveredConfigEventHolder->trackingKey);
.trackLatest(self->metaclusterEventHolder->trackingKey);
uniquify(self->allTags);

View File

@ -247,6 +247,7 @@ struct ClusterRecoveryData : NonCopyable, ReferenceCounted<ClusterRecoveryData>
Future<Void> logger;
Reference<EventCacheHolder> metaclusterEventHolder;
Reference<EventCacheHolder> swVersionCheckedEventHolder;
Reference<EventCacheHolder> recoveredConfigEventHolder;
Reference<EventCacheHolder> clusterRecoveryStateEventHolder;
@ -277,6 +278,7 @@ struct ClusterRecoveryData : NonCopyable, ReferenceCounted<ClusterRecoveryData>
backupWorkerDoneRequests("BackupWorkerDoneRequests", cc),
getLiveCommittedVersionRequests("GetLiveCommittedVersionRequests", cc),
reportLiveCommittedVersionRequests("ReportLiveCommittedVersionRequests", cc),
metaclusterEventHolder(makeReference<EventCacheHolder>("MetaclusterMetadata")),
swVersionCheckedEventHolder(makeReference<EventCacheHolder>("SWVersionCompatibilityChecked")),
recoveredConfigEventHolder(makeReference<EventCacheHolder>("RecoveredConfig")) {
clusterRecoveryStateEventHolder = makeReference<EventCacheHolder>(