storcon: add tags to scheduler logs (#9127)

We log something at info level each time we schedule a shard to a
non-secondary location.

Might as well have context for it.
This commit is contained in:
Vlad Lazar
2024-09-25 10:16:06 +01:00
committed by GitHub
parent 5f2f31e879
commit a26cc29d92

View File

@@ -548,6 +548,11 @@ impl TenantShard {
}
}
#[instrument(skip_all, fields(
tenant_id=%self.tenant_shard_id.tenant_id,
shard_id=%self.tenant_shard_id.shard_slug(),
sequence=%self.sequence
))]
pub(crate) fn schedule(
&mut self,
scheduler: &mut Scheduler,