runtime-node icon indicating copy to clipboard operation
runtime-node copied to clipboard

Don't send heartbeat when there are compressed stats

Open hansott opened this issue 7 months ago • 1 comments

We keep durations per operation (to measure the time our algo takes to detect attacks)

After 5000 samples we compress them into percentiles. 5000 invocations is not much. This means that we will send a heartbeat almost every checkIfHeartbeatIsNeededEveryMS for normal production traffic

Which is currently set at 60s

So every minute we would send a heartbeat...

hansott avatar May 16 '25 11:05 hansott

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar May 16 '25 11:05 codecov[bot]