feat(events): populate ProjectionErrors / ProjectionRebuildErrors on TryCreateUsage#4708
Merged
jeremydmiller merged 2 commits intoJun 9, 2026
Conversation
…TryCreateUsage Companion to JasperFx/jasperfx#431 — populates the new descriptor fields on `EventStoreUsage` from `StoreOptions.Projections.Errors` and `.RebuildErrors` in `DocumentStore.EventStore.TryCreateUsage`. With these on the wire, downstream monitoring tools (CritterWatch) can render the projection-error policy operators have actually configured and pick the right affordance — DLQ inspection vs "shard halts on error" indicator. Motivated by JasperFx/ProductSupport#3: a Marten consumer running with `Projections.Errors.SkipApplyErrors = false` (stop-on-error policy) was shown a "View Related Dead Letters" button on the projection detail page, because CritterWatch had no way to read the policy off the wire and assumed skip-and-DLQ behaviour. Three flags carry over for each of normal-run and rebuild-mode: - `SkipApplyErrors` - `SkipUnknownEvents` - `SkipSerializationErrors` `ProjectionRebuildErrors` is populated independently of `ProjectionErrors` because rebuilds default to stop-on-error even when normal runs skip — operators rebuilding need to know whether a poison-pill event will halt the rebuild. CoreTests pin the new shape via a stop-on-error config: a host with `Projections.Errors.SkipApplyErrors = false` shows up correctly in the descriptor, and the (unchanged) rebuild defaults round-trip too. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
Author
This was referenced Jun 9, 2026
This was referenced Jun 11, 2026
Merged
This was referenced Jun 18, 2026
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.
What
Companion to JasperFx/jasperfx#431 — populates the new descriptor fields on
EventStoreUsagefromStoreOptions.Projections.Errorsand.RebuildErrorsinsideDocumentStore.EventStore.TryCreateUsage. With these on the wire, downstream monitoring tools (CritterWatch) can render the projection-error policy operators have actually configured and pick the right operator affordance.usage.ProjectionErrorsOptions.Projections.Errors(normal-run config)usage.ProjectionRebuildErrorsOptions.Projections.RebuildErrors(rebuild-mode config)Each descriptor mirrors
ErrorHandlingOptions's three flags:SkipApplyErrors,SkipUnknownEvents,SkipSerializationErrors.Why
JasperFx/ProductSupport#3 — a Marten consumer running with
Projections.Errors.SkipApplyErrors = false(stop-on-error policy) was shown a "View Related Dead Letters" button on CritterWatch's projection detail page because CritterWatch had no way to read the policy off the wire and assumed skip-and-DLQ behavior. With this PR (after #431 ships) CritterWatch will be able to render the right affordance per store.Coordination
ProjectionErrors/ProjectionRebuildErrorstoEventStoreUsage)Verification
CoreTests/jasper_fx_mechanics.cstest exercises a stop-on-error config end-to-end and asserts both descriptors carry the right values. Passes locally against a local-feed prerelease of JasperFx.Events with the descriptor types in place.🤖 Generated with Claude Code