Blog/Pattern: Exception tracking

Pattern: Exception tracking

Collect errors with runtime context and group similar failures into issues. Route changes in frequency or newly introduced failures to the responsible team.

Context

A regression can emit thousands of similar stack traces, hiding the first deployment or operation that introduced it. Operators need an issue view with enough context to identify the change.

Problem

How can maintainers identify and prioritize recurring failures from many service instances?

Solution

Send classified exceptions with service, release, operation, and a trace ID. Group by normalized exception type and relevant stack frames, then notify the owning team for new issues or meaningful frequency changes. Exclude secrets from payload and context fields.

Runtime exception to Group signatures to Issue and owner.Runtime exception to Group signatures to Issue and owner.

Example

An event parser regression triggers one issue grouped by exception and stack location. Release attributes show that it began with the latest worker rollout.

Resulting Context

Grouping turns repeated errors into actionable signals. Filter expected exceptions and scrub context so alerts stay useful and private data does not leak.

Verify the behavior

Introduce the same exception on two replicas. It should group into one issue with multiple occurrences. Deploy a new version and verify its release metadata makes the start and disappearance of the issue visible.