Skip to content

Commit be4c352

Browse files
committed
Update readme and changelog
Signed-off-by: ivan-valkov <iv.v.valkov@gmail.com>
1 parent 1322c0d commit be4c352

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 1.6.2
4+
* Add `AsyncResultCallback` to allow users to handle errors when using asynchronous message sending.
5+
36
## 1.6.1
47
* Add another fix for `Close` called twice in Async
58

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ The default is false.
121121
When Async is enabled, immediately discard the event queue on close() and return (instead of trying MaxRetry times for each event in the queue before returning)
122122
The default is false.
123123

124+
### AsyncResultCallback
125+
126+
When Async is enabled, if this is callback is provided, it will be called on every write to Fluentd. The callback function
127+
takes two arguments - a `[]byte` of the message that was to be sent and an `error`. If the `error` is not nil this means the
128+
delivery of the message was unsuccessful.
129+
124130
### SubSecondPrecision
125131

126132
Enable time encoding as EventTime, which contains sub-second precision values. The messages encoded with this option can be received only by Fluentd v0.14 or later.

0 commit comments

Comments
 (0)