Stream: git-wasmtime

Topic: wasmtime / PR #5194 offer function-level control over tra...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 20:49):

joeshaw opened PR #5194 from joeshaw/suppress-tracing to main:

This replaces the simple tracing boolean from the from_witx! macro
with a suppress_tracing value that can be set on a per-function basis.

The format is the same as the async value, so functions can either be
listed individually in braces or all tracing can be disabled with *.
Some identifiers in code were renamed for this reuse: AsyncFunctions
-> Functions and AsyncConfField -> FunctionField.

Examples:

wiggle::from_witx!({
    suppress_tracing: *,
    witx: ["..."],
});
wiggle::from_witx!({
    suppress_tracing: {
        module1::func,
        module2::another_func,
    },
    witx: ["..."],
});

Fixes #5193

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 20:58):

pchickey requested pchickey for a review on PR #5194.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 17:42):

joeshaw updated PR #5194 from joeshaw/suppress-tracing to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 17:43):

joeshaw edited PR #5194 from joeshaw/suppress-tracing to main:

This adds to the tracing boolean from the from_witx! macro a disabled_for list of identifiers that allow for suppression of tracing on a per-function basis.

Example:

wiggle::from_witx!({
    tracing: true disable_for {
        module1::func,
        module2::another_func,
    },
    witx: ["..."],
});

Fixes #5193

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 19:03):

joeshaw has marked PR #5194 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2022 at 17:51):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2022 at 18:31):

pchickey merged PR #5194.


Last updated: Nov 22 2024 at 17:03 UTC