Commit e094d242 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

remove link spans

parent fc8b2916
...@@ -4,7 +4,6 @@ use anyhow::Result; ...@@ -4,7 +4,6 @@ use anyhow::Result;
use parking_lot::Mutex; use parking_lot::Mutex;
use rustc_hash::{FxHashMap, FxHashSet}; use rustc_hash::{FxHashMap, FxHashSet};
use swc_core::ecma::ast::Id; use swc_core::ecma::ast::Id;
use tracing::Instrument;
use super::{JsValue, graph::VarGraph}; use super::{JsValue, graph::VarGraph};
...@@ -22,7 +21,8 @@ where ...@@ -22,7 +21,8 @@ where
RF: 'a + Future<Output = Result<(JsValue, bool)>> + Send, RF: 'a + Future<Output = Result<(JsValue, bool)>> + Send,
F: 'a + Fn(JsValue) -> RF + Sync, F: 'a + Fn(JsValue) -> RF + Sync,
{ {
let span = tracing::trace_span!("link", steps = tracing::field::Empty); // use tracing::Instrument;
// let span = tracing::trace_span!("link", steps = tracing::field::Empty);
val.normalize(); val.normalize();
let (val, steps) = async { let (val, steps) = async {
link_internal_iterative( link_internal_iterative(
...@@ -35,9 +35,9 @@ where ...@@ -35,9 +35,9 @@ where
) )
.await .await
} }
.instrument(span.clone()) // .instrument(span.clone())
.await?; .await?;
span.record("steps", steps); // span.record("steps", steps);
Ok((val, steps)) Ok((val, steps))
} }
......
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