v3.3.1
This release is largely a result of tests performed by @kolin-newby and @monrax
What's Changed
- Bug Fix - Modify
stopDispatcher
method to use additionalstop
channel, instead of attempting to close msgQueue. Attempting to close a channel from a different goroutine than the sender results in a race condition. This fix removes such condition. - Feature - Export
BaseLogger.stopDispatcher
functionality throughHttpLogger.Stop
method - Feature - Add time-based (1 sec) automatic flush of message bundles to
dispatcher
- Feature - Add support for additional custom environment
USAGE_LOGGERS
variables:USAGE_LOGGERS_BODY_LIMIT
: upper limit to HTTP request/response body bytesUSAGE_LOGGERS_BUNDLE_SIZE
: NDJSON bundle threshold size, in bytesUSAGE_LOGGERS_MESSAGE_QUEUE_SIZE
: Number of buffered messages inmsgQueue
USAGE_LOGGERS_BUNDLE_QUEUE_SIZE
: Number of buffered NDJSON bundles insubmitQueue
- Drop support for older versions of go that have reached their end of life (1.15, 1.16, 1.17)
- Rollback magic bytes feature until its performance impact has been measured
Full Changelog: v3.2.3...v3.3.1