logdna / logger-node

A nodejs logger client for LogDNA
MIT License
34 stars 17 forks source link

feat: optionally include buffer in send/error events. #61

Closed emelski closed 2 years ago

emelski commented 2 years ago

With this change, the user may specify a verboseEvents boolean option when creating a logger. If true, the logger will include the buffer of messages that was sent (or attempted to be sent) when emitting send and error events, in the buffer member of the send event and the meta.buffer member of the error event. This enables users to correctly identify the messages that were transmitted for metrics in case of success, and to implement higher-level retry behaviors in case of errors.

Fixes: #60

logdnabot commented 2 years ago

:tada: This PR is included in version 2.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: