Skip to content

Conversation

@drogus
Copy link
Collaborator

@drogus drogus commented Nov 10, 2025

Description of Changes

Currently, we have a metric for reducer panics called spacetime_worker_wasm_instance_errors_total. This commit adds a metric for tracking errors returned from the module, like for example an Err result in Rust, or throwing a SenderError in TypeScript

This will be needed for the web database overview dashboard, but it should be useful for tracking sender errors in general.

Expected complexity level and risk

1

Testing

  • I've tested the change locally verifying the counter increments when an instance returns an error

@drogus drogus force-pushed the drogus/metrics-for-errors-and-panics branch 4 times, most recently from 74499c5 to 3fc3fa0 Compare November 10, 2025 11:16
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just think we should change/simplify the naming to not reference wasm

@drogus
Copy link
Collaborator Author

drogus commented Nov 10, 2025

Just think we should change/simplify the naming to not reference wasm

Yeah, that makes sense. I wanted to go with the current convention, but we'll eventually probably rename it, too

@drogus drogus force-pushed the drogus/metrics-for-errors-and-panics branch from 3fc3fa0 to 6157a5f Compare November 10, 2025 14:41
@drogus drogus requested a review from cloutiertyler November 10, 2025 15:06
@bfops bfops added the release-any To be landed in any release window label Nov 10, 2025
Currently we have a metric for reducer panics called
`spacetime_worker_wasm_instance_errors_total`. This commit adds a
metric for tracking errors returned from the module, like for example an
Err result in Rust, or throwing a SenderError in TypeScript
@drogus drogus force-pushed the drogus/metrics-for-errors-and-panics branch from 0ed5416 to acb292d Compare November 20, 2025 13:43
@joshua-spacetime joshua-spacetime linked an issue Nov 20, 2025 that may be closed by this pull request
@cloutiertyler cloutiertyler added this pull request to the merge queue Nov 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 24, 2025
@drogus drogus added this pull request to the merge queue Nov 24, 2025
Merged via the queue into master with commit 0491b5e Nov 24, 2025
47 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add error rate + panic rate metrics to prometheus

4 participants