aten icon indicating copy to clipboard operation
aten copied to clipboard

Attach timestamp to node_events

Open kjnilsson opened this issue 5 years ago • 0 comments

Currently there is no way for a watcher that receives a node_event to make any judgement on how long ago the state change was observed. Depending on the watcher process implementation it could have spent significant time in the mailbox. If we attach a timestamp to the node_event, receivers of the event can at least evaluate the freshness of the event and possibly choose to ignore it or wait a bit to see if another state change might have been emitted.

A timestamp should be good enough given watchers should only reside on the same erlang node as the aten detector process.

This is a breaking change.

kjnilsson avatar Dec 10 '18 13:12 kjnilsson