Unverified Commit e04b09a6 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: add attribute name to trace server search (#77938)

### What?

Allow to search for attribute name and name value pair
parent d1b61558
...@@ -434,14 +434,14 @@ impl<'a> SpanRef<'a> { ...@@ -434,14 +434,14 @@ impl<'a> SpanRef<'a> {
.raw_entry_mut() .raw_entry_mut()
.from_key(name) .from_key(name)
.and_modify(|_, v| v.push(span.index())) .and_modify(|_, v| v.push(span.index()))
.or_insert_with(|| (name.to_string(), vec![span.index()])); .or_insert_with(|| (format!("name={name}"), vec![span.index()]));
} }
for (_, value) in span.span.args.iter() { for (name, value) in span.span.args.iter() {
index index
.raw_entry_mut() .raw_entry_mut()
.from_key(value) .from_key(value)
.and_modify(|_, v| v.push(span.index())) .and_modify(|_, v| v.push(span.index()))
.or_insert_with(|| (value.to_string(), vec![span.index()])); .or_insert_with(|| (format!("{name}={value}"), vec![span.index()]));
} }
if !span.is_complete() && !span.time_data().ignore_self_time { if !span.is_complete() && !span.time_data().ignore_self_time {
let name = "incomplete_span"; let name = "incomplete_span";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment