Skip to content

feat: support fuel consumption metrics - #289

Open
if0ne wants to merge 4 commits into
wasmCloud:mainfrom
if0ne:feat/fuel-meter
Open

feat: support fuel consumption metrics#289
if0ne wants to merge 4 commits into
wasmCloud:mainfrom
if0ne:feat/fuel-meter

Conversation

@if0ne

@if0ne if0ne commented Feb 11, 2026

Copy link
Copy Markdown
Member

Just an experiment. I’m not sure whether we support this yet. If we decide to keep it, I can improve the developer experience for plugin authors to make it easier to integrate this metric into their code.

QR code example:

image

Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
@if0ne
if0ne requested a review from a team as a code owner February 11, 2026 08:56
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
@automation-wasmcloud

Copy link
Copy Markdown

This repository has been merged into wasmCloud/wasmCloud. Please re-open this PR against wasmCloud/wasmCloud:main.

1 similar comment
@automation-wasmcloud

Copy link
Copy Markdown

This repository has been merged into wasmCloud/wasmCloud. Please re-open this PR against wasmCloud/wasmCloud:main.

@lxfontes

Copy link
Copy Markdown
Member

this is 👍 and will follow up on wasmcloud/wasmcloud repo

lxfontes pushed a commit to wasmCloud/wasmCloud that referenced this pull request Mar 12, 2026
* Add OpenTelemetry metrics support to `wash-runtime`, introducing a
`FuelConsumptionMeter` that measures Wasm fuel consumed per component
invocation (HTTP requests, in-memory messaging, NATS messaging)
* Wire fuel metering through the host, HTTP server, and plugin layers
via an `inject_meters` pattern on `HostHandler` and `HostPlugin` traits
* Add `--enable-meters` global CLI flag to `wash` that enables fuel
consumption tracking and configures the Wasmtime engine with
`consume_fuel`

<img width="1491" height="741" alt="image"
src="https://github.com/user-attachments/assets/fb672c37-0222-45f0-b388-7358e48bfc8c"
/>

Old PR: wasmCloud/wash#289

---------

Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants