Skip to content

Version 0.12.1

Latest
Compare
Choose a tag to compare
@Mr0grog Mr0grog released this 19 Dec 17:55
· 1 commit to main since this release
3614136

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 to 0 or stop() (see below) if you are quitting your program by calling process.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 the flush option: stop({flush: false})). (#141)

View diff