Skip to content

Commit

Permalink
collapse expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Aug 10, 2020
1 parent 0552224 commit 08cf568
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tracing-subscriber/src/registry/sharded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ impl Subscriber for Registry {
fn event(&self, _: &Event<'_>) {}

fn enter(&self, id: &span::Id) {
let spans = self.current_spans.get_or_default();
spans.borrow_mut().push(self.clone_span(id));
self.current_spans
.get_or_default()
.borrow_mut()
.push(self.clone_span(id));
}

fn exit(&self, id: &span::Id) {
Expand Down

0 comments on commit 08cf568

Please sign in to comment.