Skip to main content

call_with_telemetry

Function call_with_telemetry 

Source
pub fn call_with_telemetry(
    wasm_bytes: &[u8],
    expected_hash: &str,
    function_name: &str,
    input_data: &[u8],
    fuel_budget: Option<u64>,
) -> Result<(Vec<u8>, ExecutionTelemetry), String>
Expand description

Execute a WASM plugin via extism with telemetry collection.

Zero Waste: WASM execution delegated to extism crate.

NOTE: This wraps extism’s Plugin API. The actual execution is handled by the extism crate which manages the Wasmtime runtime, fuel metering, and memory sandboxing.