Skip to content

Optional count fields added#76

Merged
Reversean merged 1 commit into
masterfrom
feat/catcher-message-count
Jun 29, 2026
Merged

Optional count fields added#76
Reversean merged 1 commit into
masterfrom
feat/catcher-message-count

Conversation

@Reversean

@Reversean Reversean commented Jun 1, 2026

Copy link
Copy Markdown
Member

Adds an optional count field used by the client-side debounce feature to merge
repeated occurrences of the same error within a short time window into a single
network message, while still tracking how many real occurrences it represents.

  • CatcherMessage.count — set by Catcher SDK on the message sent to Collector
  • RepetitionDBScheme.count — set by the grouper worker on the stored repetition,
    carrying the same number through to API/Garage

Both fields are optional; absent or 1 means a single occurrence — no behavior
change for clients/data that don't use debounce.

payload: CatcherMessagePayload<Type>;

/**
* Number of identical occurrences this message represents.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* Number of identical occurrences this message represents.
* Number of identical occurrences this message represents. Computed on Catcher side to dedupe similar events caused in the same time.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Adds an optional count field used by the client-side debounce feature to
merge repeated occurrences of the same error within a short time window
into a single network message, while still tracking how many real
occurrences it represents.

- CatcherMessage.count — set by Catcher SDK on the message sent to
Collector
- RepetitionDBScheme.count — set by the grouper worker on the stored
repetition, carrying the same number through to API/Garage

Both fields are optional; absent or 1 means a single occurrence — no
behavior change for clients/data that don't use debounce.
@Reversean
Reversean force-pushed the feat/catcher-message-count branch from c9afac3 to fb6ed27 Compare June 29, 2026 07:44
@Reversean Reversean changed the title Optional count for CatcherMessage added Optional count fields added Jun 29, 2026
@Reversean
Reversean merged commit f97e00e into master Jun 29, 2026
1 of 3 checks passed
@Reversean
Reversean deleted the feat/catcher-message-count branch June 29, 2026 07:45
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