From 0466f47cb4f48400745470d9d5c08d688e2227df Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Fri, 26 Mar 2021 14:25:10 -0700 Subject: [PATCH] wiggle: generate a span that is present at all levels The code I wrote here prior was incorrect: a span is present at the level specified and below; previously I thought it was present at the level specified and above. So, previously, a TRACE-level event inside this span would be associated with the module and function name provided here. Now all events inside this span should be associated with it. --- crates/wiggle/generate/src/funcs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/wiggle/generate/src/funcs.rs b/crates/wiggle/generate/src/funcs.rs index 4fcdcba474..69a5d89ee6 100644 --- a/crates/wiggle/generate/src/funcs.rs +++ b/crates/wiggle/generate/src/funcs.rs @@ -69,8 +69,9 @@ pub fn define_func( ) -> Result<#abi_ret, #rt::Trap> { use std::convert::TryFrom as _; + // This span is present at all levels (ERROR and below) let _span = #rt::tracing::span!( - #rt::tracing::Level::TRACE, + #rt::tracing::Level::ERROR, "wiggle abi", module = #mod_name, function = #func_name