How a new shape is handled
Reporting a brand-new log shape on its first occurrence is the single most valuable thing this system does, and it is the thing a rate-based alarm structurally cannot do: one occurrence never exceeds any threshold.
Key takeaways
- A shape never seen before is reported on its first occurrence, at any count.
- The first two weeks are a warm-up: everything is new, so nothing is reported.
- After a deploy, new shapes are grouped and labelled rather than suppressed.
- A new shape stops being new after it has appeared in three separate hours.
- A shape that reappears after 60 days of absence is treated as new again.
First occurrence
- Database
- App integration
- Machine learning
- Management
- Analytics
The warm-up
On the first day, every shape is new and the digest would contain three hundred and forty entries. So the first fourteen days record shapes without reporting them, and the system says clearly that it is warming up and when it will start.
Fourteen days is chosen to cover the weekly cycle twice, which matters because a substantial number of shapes only occur on a particular day — a Sunday batch job, a Monday morning report, a month-end process that will not appear at all in the first two weeks and will be reported as new when it does. That last case is worth expecting rather than being surprised by.
Deploys: label, do not suppress
The obvious handling is to suppress new shapes for an hour after a deploy, since a release naturally produces new log messages. It is also precisely backwards: a deploy is the single most likely moment for a genuinely new error to appear, and suppressing exactly then removes the system’s best opportunity.
So new shapes after a deploy are grouped under a heading — “7 new shapes since release a3f21c” — and reported together. A person scanning that sees six that are obviously new informational messages and one that is a stack trace, which is a much better outcome than either suppressing all seven or listing them individually.
When a shape stops being new
Counting hours rather than occurrences matters. A new shape that appears four hundred times in its first hour is one event, and treating it as three occurrences’ worth of novelty would move it to baseline before anybody had seen it in the digest.
Reappearance after absence
A shape that has not been seen for sixty days and then returns is treated as new again, which catches a specific and common case: an error that was fixed months ago and has come back. Under a pure seen-before rule it would be recognised as familiar and never mentioned, which is the wrong answer for something that was absent for two months.
Next: how a rate change is judged.
All posts