state: remove state_trace span

This turns out not to give much additional information when stacked with
child spans.
This commit is contained in:
Henry de Valence 2020-11-20 15:12:30 -08:00
parent bbd7a62b20
commit 7dfea510d5
1 changed files with 1 additions and 7 deletions

View File

@ -383,13 +383,7 @@ impl Service<Request> for StateService {
Poll::Ready(Ok(()))
}
// Because the request might have a verbose debug output (e.g.,
// an entire block), include it only in a second trace-level span.
// For some reason putting them in this order causes the info-level
// span to be entered first.
#[allow(unused_braces)] // fixes a spurious warning from the proc macro
#[instrument(name = "state_trace", level = "trace", skip(self))]
#[instrument(name = "state", level = "info", skip(self, req))]
#[instrument(name = "state", skip(self, req))]
fn call(&mut self, req: Request) -> Self::Future {
match req {
Request::CommitBlock { block } => {