New Features:
-
When auto-flushing is enabled, metrics are now also flushed before the process exits. In previous versions, you needed to do this manually by calling
metrics.flush()
at the every end of your program. (#141)You will still need to flush manually if you set
flushIntervalSeconds
to0
orstop()
(see below) if you are quitting your program by callingprocess.exit()
(which interrupts a variety of operations). -
A new
stop()
method disables auto-flushing and flushes any currently buffered metrics (you can leave metrics in the buffer instead with theflush
option:stop({flush: false})
). (#141)