Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Add back value record in new_span
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Apr 17, 2021
1 parent aed1b82 commit baf1a73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/tracing/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ impl Subscriber for BlockSubscriber {
fn new_span(&self, attrs: &Attributes<'_>) -> Id {
let id = self.next_id.fetch_add(1, Ordering::SeqCst);
let id = Id::from_u64(id);
let values = Values::default();
let mut values = Values::default();
attrs.record(&mut values);
let parent_id = attrs.parent().cloned()
.or_else(|| self.current_span.id());
let span = SpanDatum {
Expand Down

0 comments on commit baf1a73

Please sign in to comment.