Skip to content

Commit

Permalink
fix: parse span threads correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
soehrl committed Nov 13, 2024
1 parent e79f639 commit 2fa02c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tracing-tape-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ impl Intermediate {
fn enter_span<'a>(&mut self, slice: &'a [u8]) -> &'a [u8] {
let span_enter_record = SpanEnterRecord::ref_from_prefix(slice).unwrap();

self.threads
.entry(span_enter_record.thread_id.get())
.or_insert(None);

let index = self.opened_spans[&span_enter_record.id.get()];
let span = &mut self.span_graph[index];
span.entrances.push(SpanEntrance {
Expand Down

0 comments on commit 2fa02c9

Please sign in to comment.