Crates.io | tracing-fluentd |
lib.rs | tracing-fluentd |
version | 0.4.1 |
source | src |
created_at | 2021-07-15 14:30:54.860877 |
updated_at | 2024-08-14 11:46:27.574869 |
description | Enables forwarding of `tracing` events towards the `fluentd` server. |
homepage | |
repository | https://github.com/DoumanAsh/tracing-fluentd |
max_upload_size | |
id | 423108 |
size | 36,862 |
Enables forwarding of tracing
events towards the fluentd
server.
event_time
- Specifies to encode timestamp as EventTime instead of default unix timestampuse tracing_subscriber::layer::SubscriberExt;
let layer = tracing_fluentd::Builder::new("rust").flatten().layer().expect("Create layer");
let sub = tracing_subscriber::Registry::default().with(layer);
let guard = tracing::subscriber::set_default(sub);