tokio-fluent
Installation
Add this to your Cargo.toml
[]
= "0.5.1"
Example
use HashMap;
use ;
use ;
use record_map;
async
Setting config values
let client = new_tcp
.await
.unwrap;
timeout
Set the timeout value of std::time::Duration
to connect to the destination. The default is 3 seconds.
retry_wait
Set the duration of the initial wait for the first retry, in milliseconds.
The actual retry wait will be r * 1.5^(N-1)
(r: this value, N: the number of retries).
The default is 500.
max_retry
Sets the maximum number of retries. If the number of retries become larger than this value, the write/send operation will fail. The default is 10.
max_retry_wait
The maximum duration of wait between retries, in milliseconds. If calculated retry wait is larger than this value, operation will fail. The default is 60,000 (60 seconds).
max_connection_lifetime
The maximum lifetime of a connection before reconnection is attempted.
Note that reconnection is only triggered when new log lines are sent. If no new log lines are received within this timeframe, the connection will remain open, even if it's older than the value. The default is 0 (no reconnection).