arXiv:2610.38682cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.38682

Write Once, Instrument Anywhere: Portable, Sandboxed Tooling with WebAssembly Components

Elizabeth Gilbert, Chris Fallin, Heather Miller, Ben L. Titzer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Monitoring and debugging deployed software is crucial for scalability, performance, and robustness. Cross-cutting concerns are pervasive across software ecosystems, yet engineers must address them with a fragmented toolbox. While high-level frameworks exist to offer application-level types and semantics, they often lock a solution into specific languages, runtimes, or hardware architectures. Portability often forces engineers to choose lower-level instrumentation mechanisms. For example, in-language frameworks can trace a request across processes, but multi-language contexts require instrumentation at the boundary, for example using eBPF. While these frameworks provide powerful capabilities, they often result in 1) a tradeoff between application-level types or low-level bytes and packets, 2) non-composable domain-specific tools, 3) feature fragmentation across frameworks, and 4) tools that often run with unrestricted access to the program and its environment.

We address these problems with Splicer, a WebAssembly component interposition framework that 1) provides semantically rich application-level types, 2) enables pluggable tooling with powerful capabilities, 3) reduces ecosystem fragmentation through porting across languages and hardware, and 4) confines each tool to a sandbox with explicitly granted permissions. We evaluate Splicer on a suite of benchmarks demonstrating the pluggability of non-trivial tooling written in multiple source languages and their performance.

1 Introduction

Applications deployed in production often require cross-cutting monitoring and debugging, which is crucial for scalability, performance, and robustness. As these fundamental needs are pervasive across software domains, many observability frameworks have arisen. Common use cases are telemetry collection, security policy enforcement, payload enrichment, and optimization techniques. To span a diverse set of use cases, we use the term tool to refer to an implementation of a cross-cutting concern for a software system, similar to an aspect in aspect-oriented programming [27]. Example tools are security policy enforcement, payload enhancement, profiling, tracing, and telemetry.

Systems like the OS kernel and profilers can provide observability without inserting instrumentation into target programs, but are often limited to binary data, network packets, and low-level events like page faults and system calls [2, 22, 32, 37, 39, 51]. To access higher-level information, instrumentation is inserted into programs at the source, byte-code/IR, or binary level [6, 27, 30, 34, 41]. However, these approaches invasively inject code into programs, potentially altering their behavior inadvertently and are constrained to their specific language, runtime, and/or hardware. On the other hand, VMs and emulators can keep programs and instrumentation separate, often imposing high overhead [4, 44], which optimizations can reduce [6, 34, 56].

This landscape poses a stark tradeoff for tools: application-level semantics or non-invasive portability at the perimeter, but not both. Our work offers a new, superior resolution of this tradeoff at a boundary that itself carries the application-level types. Interposing at such a boundary is semantically rich, non-invasive, and ports across languages.

In this paper we present Splicer, a framework that provides non-invasive, language-portable, and semantically rich interposition. Splicer supplies the missing instrumentation framework for the WebAssembly Component Model, a standard that makes rich, application-level types observable component boundaries. Leveraging this rich information provided by Wasm components, Splicer enables heterogeneous tooling (Table 2) with high performance (Figure 8). We conduct a qualitative comparison with related frameworks in Table 4 showing that Splicer is the only framework with language portability, application-level typing semantics, and high-granularity without extra supporting infrastructure like agent processes. To empirically evaluate the overhead of Splicer in both runtime and code size, we conduct a series of experiments that show it imposes acceptable overhead on both microbenchmarks and real-world applications.

References (14)