mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-03 19:42:55 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user