elliottt opened PR #9263 from elliottt:trevor/instrument-call-functions to bytecodealliance:main:
Following on from #9217, generate
call_*functions that usetracing::Instrumentinstead ofSpan::enter.To test this change I added an additional set of generated files that corresponds to the combination of
async: trueandtracing: true. This way we can verify that the changes in #9217 and this PR remove uses ofSpan::enterfrom the code generated by thebindgen!macro.
elliottt requested alexcrichton for a review on PR #9263.
elliottt requested wasmtime-core-reviewers for a review on PR #9263.
elliottt requested pchickey for a review on PR #9263.
elliottt edited PR #9263:
Following on from #9217, generate
call_*functions that usetracing::Instrumentinstead ofSpan::enter.To test this change I added an additional set of generated files that corresponds to the combination of
async: trueandtracing: true. This way we can verify that the changes in #9217 and this PR remove uses ofSpan::enterfrom the code generated by thebindgen!macro.The additional exp files add an awful lot to this diff, and I think it would be reasonable to remove them before merging. The meat of the changes is in the middle commit, 4c1a4f0998b8f3ebca9e6873a781be69a9121a82.
elliottt edited PR #9263:
Following on from #9217, generate
call_*functions that usetracing::Instrumentinstead ofSpan::enter.To test this change I added an additional set of generated files that corresponds to the combination of
async: trueandtracing: true. This way we can verify that the changes in #9217 and this PR remove uses ofSpan::enterfrom the code generated by thebindgen!macro.The additional exp files add an awful lot to this diff, and I think it would be reasonable to remove them before merging. The meat of the changes is in the middle commit, 4c1a4f0998b8f3ebca9e6873a781be69a9121a82, and the final commit shows the differences to the generated code that the middle commit introduces. I believe this catches all outstanding uses of
enterfor the combination ofasync: trueandtracing: true.
elliottt submitted PR review.
elliottt created PR review comment:
This all feels a bit verbose, but it seemed slightly easier to read than the version where I inlined the conditional into the args to the format string. Happy to add the inlined version if that's preferred.
alexcrichton submitted PR review.
elliottt merged PR #9263.
Last updated: Dec 06 2025 at 06:05 UTC