shard: fix name in xmon and add replica id to tag in metrics

This commit is contained in:
Miroslav Crnic
2024-03-12 13:40:35 +00:00
committed by GitHub Enterprise
parent b240de53b5
commit 13c5df0131
2 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ std::ostream& operator<<(std::ostream& out, ReplicaId replica) {
}
std::ostream& operator<<(std::ostream& out, ShardReplicaId shrid) {
out << shrid.shardId() << ":" << shrid.replicaId();
out << std::setw(3) << std::setfill('0') << shrid.shardId() << ":" << shrid.replicaId();
return out;
}