mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 02:12:56 +00:00
refactor: prefer in_current_span
This commit is contained in:
@@ -1503,8 +1503,6 @@ impl Tenant {
|
||||
timeline
|
||||
};
|
||||
|
||||
let span = tracing::Span::current();
|
||||
|
||||
// if we have concurrent requests, we will only execute one version of following future;
|
||||
// initially it did not have any means to be cancelled.
|
||||
//
|
||||
@@ -1672,7 +1670,7 @@ impl Tenant {
|
||||
Ok(())
|
||||
}
|
||||
// execute in the *winner's* span so we will capture the request id etc.
|
||||
.instrument(span)
|
||||
.in_current_span()
|
||||
};
|
||||
|
||||
let (recv, maybe_fut) = timeline.delete_self.try_restart(factory).await;
|
||||
|
||||
Reference in New Issue
Block a user