https://github.com/doumanash/tracing-fluentd
Enables forwarding of `tracing` events towards the `fluentd`.
https://github.com/doumanash/tracing-fluentd
rust tracing
Last synced: 3 months ago
JSON representation
Enables forwarding of `tracing` events towards the `fluentd`.
- Host: GitHub
- URL: https://github.com/doumanash/tracing-fluentd
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2021-07-12T09:30:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T02:44:12.000Z (8 months ago)
- Last Synced: 2025-02-27T09:13:04.361Z (3 months ago)
- Topics: rust, tracing
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tracing-fluentd
[](https://crates.io/crates/tracing-fluentd)
[](https://docs.rs/crate/tracing-fluentd/)
[](https://github.com/DoumanAsh/tracing-fluentd/actions?query=workflow%3ARust)Enables forwarding of `tracing` events towards the `fluentd` server.
## Features
- `event_time` - Specifies to encode timestamp as EventTime instead of default unix timestamp
## Example
```rust
use 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);
```