feat: support fuel consumption metrics - #289
Open
if0ne wants to merge 4 commits into
Open
Conversation
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>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
|
This repository has been merged into wasmCloud/wasmCloud. Please re-open this PR against wasmCloud/wasmCloud:main. |
1 similar comment
|
This repository has been merged into wasmCloud/wasmCloud. Please re-open this PR against wasmCloud/wasmCloud:main. |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: