Merge pull request #2782 from bytecodealliance/pch/wiggle_tracing_span_fix

wiggle: generate a span that is present at all levels
This commit is contained in:
Pat Hickey
2021-03-28 15:04:33 -07:00
committed by GitHub

View File

@@ -69,8 +69,9 @@ pub fn define_func(
) -> Result<#abi_ret, #rt::Trap> { ) -> Result<#abi_ret, #rt::Trap> {
use std::convert::TryFrom as _; use std::convert::TryFrom as _;
// This span is present at all levels (ERROR and below)
let _span = #rt::tracing::span!( let _span = #rt::tracing::span!(
#rt::tracing::Level::TRACE, #rt::tracing::Level::ERROR,
"wiggle abi", "wiggle abi",
module = #mod_name, module = #mod_name,
function = #func_name function = #func_name