aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/shared/profile/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/shared/profile/lib.rs b/components/shared/profile/lib.rs
index 3e5035f112b..fef2b255bea 100644
--- a/components/shared/profile/lib.rs
+++ b/components/shared/profile/lib.rs
@@ -19,7 +19,7 @@ pub mod time;
macro_rules! time_profile {
($category:expr, $meta:expr, $profiler_chan:expr, $($callback:tt)+) => {{
#[cfg(feature = "tracing")]
- let span = tracing::span!(tracing::Level::INFO, $category.variant_name(), servo_profiling = true);
+ let span = tracing::info_span!($category.variant_name(), servo_profiling = true);
#[cfg(not(feature = "tracing"))]
let span = ();
$crate::time::profile($category, $meta, $profiler_chan, span, $($callback)+)