Skip to content

Add view metrics that are separate from reducer metrics #5553

Merged
jsdt merged 6 commits into
masterfrom
jsdt/split-view-metrics
Jul 15, 2026
Merged

Add view metrics that are separate from reducer metrics #5553
jsdt merged 6 commits into
masterfrom
jsdt/split-view-metrics

Conversation

@jsdt

@jsdt jsdt commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

Right now we have views and reducers sharing some metrics (reducer_wasm_time_usec and reducer_wasmtime_fuel_used), which makes it difficult to tell whether we are spending time on views or actual reducers.

We are counting all of the time reported for views to the reducer that triggered it (which is also misleading). This change adds some view-specific metrics, and it adds a stat for how many view calls were triggered by each reducer.

I changed the existing behaviour to remove the double-counting, but I did not remove the code that reports to reducer_wasm_time_usec and reducer_wasmtime_fuel_used with the view name as a label, because I'd like to get this change in before I check whether removing those would affect customer visible dashboards.

I will follow up with something to remove the misleading stats once I verify that we can.

Expected complexity level and risk

  1. This is only changing metrics.

Testing

This doesn't have any testing.

@jsdt jsdt requested a review from gefjon July 15, 2026 19:37
Comment thread crates/core/src/sql/execute.rs
Comment thread crates/core/src/host/scheduler.rs
Comment thread crates/core/src/host/wasm_common/module_host_actor.rs Outdated
Comment thread crates/core/src/host/wasm_common/module_host_actor.rs
@gefjon gefjon assigned jsdt and unassigned gefjon Jul 15, 2026
jsdt and others added 2 commits July 15, 2026 13:12
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Signed-off-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
@jsdt jsdt enabled auto-merge July 15, 2026 20:28
@jsdt jsdt added this pull request to the merge queue Jul 15, 2026
Merged via the queue into master with commit b6bd615 Jul 15, 2026
44 checks passed
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.

2 participants