跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.12710 · v1

WasmLens: Automatic Glass-Box Instrumentation for Composed WebAssembly Applications

首次提交 2026-11-10 01:02
版本更新 2026-11-10 01:02
雷达观测 2026-11-10 15:22
arXiv ↗PDF ↗

摘要

The WebAssembly Component Model enables language-independent composition of independently developed components, but complicates observability. Existing tracing support flattens execution hierarchy by attributing every span created inside a composition to a single host-level parent context, so execution across component boundaries cannot be reconstructed. The problem is amplified because components are typically deployed as black boxes whose internals cannot be modified or inspected by the system integrator. To address these limitations, we propose a revised wasi:otel/tracing design in which the runtime maintains a per-component span stack, restoring parent-child relationships across component boundaries without changing component interfaces or source code. This change has since been adopted upstream. Building on this design, we present WasmLens, an automatic instrumentation tool that derives instrumentation points from a composition graph and injects tracing middleware into already composed binaries, yielding end-to-end traces for black-box compositions with no developer configuration. This automatic instrumentation raises mean request latency from 238238 μμs to 454454 μμs across six component boundaries. Raising the expected number of boundary crossings from 6 to 11 further increases latency to 514514 μμs, an incremental cost of 1212 μμs per crossing, of which 10.410.4 μμs is attributable to instrumentation. These results show that instrumentation overhead is additive in composition depth rather than proportional to baseline execution time.

作者备注:Accepted article in WebAssembly, Cloud and Edge: Shaping the Future of Computing (WACE '26)

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-10 01:02 · 最新观测版本

WasmLens: Automatic Glass-Box Instrumentation for Composed WebAssembly Applications

The WebAssembly Component Model enables language-independent composition of independently developed components, but complicates observability. Existing tracing support flattens execution hierarchy by attributing every span created inside a composition to a single host-level parent context, so execution across component boundaries cannot be reconstructed. The problem is amplified because components are typically deployed as black boxes whose internals cannot be modified or inspected by the system integrator. To address these limitations, we propose a revised wasi:otel/tracing design in which the runtime maintains a per-component span stack, restoring parent-child relationships across component boundaries without changing component interfaces or source code. This change has since been adopted upstream. Building on this design, we present WasmLens, an automatic instrumentation tool that derives instrumentation points from a composition graph and injects tracing middleware into already composed binaries, yielding end-to-end traces for black-box compositions with no developer configuration. This automatic instrumentation raises mean request latency from 238238 μμs to 454454 μμs across six component boundaries. Raising the expected number of boundary crossings from 6 to 11 further increases latency to 514514 μμs, an incremental cost of 1212 μμs per crossing, of which 10.410.4 μμs is attributable to instrumentation. These results show that instrumentation overhead is additive in composition depth rather than proportional to baseline execution time.

查看此版本解读 →查看此版本原文 ↗