mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Remove orphan span
This commit is contained in:
parent
03ab6b39e7
commit
94b260fd25
2 changed files with 4 additions and 4 deletions
|
@ -113,7 +113,10 @@ pub fn to_call_stats<R: std::io::Read>(
|
|||
|
||||
let span = *span;
|
||||
if let Some(parent_id) = span.parent_id {
|
||||
let (_, _, parent_self_time) = spans.get_mut(&parent_id).unwrap();
|
||||
let Some((_, _, parent_self_time)) = spans.get_mut(&parent_id) else {
|
||||
let (c, _) = calls.get_mut(&span.call_id).unwrap();
|
||||
panic!("parent span not found for span: module_path: {:?}, name: {:?}, target: {:?}", c.module_path.as_deref().unwrap_or_default(), c.name, c.target);
|
||||
};
|
||||
parent_self_time.add_child_range(self_range.clone())
|
||||
}
|
||||
total_self_time.add_child_range(self_range);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue