pub fn compile_to_wasm_observed(
source: &str,
) -> Result<(Vec<u8>, Vec<ObsSiteDesc>), ParseError>Expand description
Compile to WebAssembly in the OBSERVED profile (Wave 13): Note/Warn/
Record/During lower to Op::Obs, which the WASM backend emits as calls to
the host obs(site_id) import — the browser-tracing analog of the VM’s
observation emission. Returns the module bytes AND the observation_sites
table: the host (which compiled the program) resolves each site_id to its
category / message / span kind. The default compile_to_wasm stays the
elided profile, byte-identical to the observation-free program (§0.7).