You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could do some sugaring to expand simple sampling logic for probes. Consider:
wasm:opcode:if:before {
local int fire;
if fire == 0 {
... // probe body
count = rand() % 1000;
}
fire--;
}
We could sugar this to:
wasm:opcode:if:sample-1000 {
... // probe body
}
More complex examples (requires more language features)
There are also some other more-complex sampling techniques, e.g. reservoir sampling, that could be implemented and made available through just implementing them in the whamm library. So, the sampling logic would exist in whamm's Rust library, which is called to check if the probe should be fired.
The text was updated successfully, but these errors were encountered:
This is dependent on #135.
We could do some sugaring to expand simple sampling logic for probes. Consider:
We could sugar this to:
More complex examples (requires more language features)
There are also some other more-complex sampling techniques, e.g. reservoir sampling, that could be implemented and made available through just implementing them in the
whamm
library. So, the sampling logic would exist inwhamm
's Rust library, which is called to check if the probe should be fired.The text was updated successfully, but these errors were encountered: