#logging

rillrate

Dynamic logging and tracing system

11 releases (breaking)

new 0.20.0 Feb 21, 2021
0.18.0 Jan 30, 2021

#74 in Debugging

Download history 356/week @ 2021-01-09 735/week @ 2021-01-16 22/week @ 2021-01-23 136/week @ 2021-01-30 116/week @ 2021-02-06 46/week @ 2021-02-13

493 downloads per month
Used in 2 crates

MIT/Apache

135KB
3.5K SLoC

rillrate

Crates.io Released API docs

Dynamic tracing system that tends to be real-time.

The original Rust version of the library.

How to use

Add it you your Cargo.toml:

cargo add -s rillrate

Create an instance of RillRate tracer and install it providing the name of your app:

use anyhow::Error;
use rillrate::RillRate;

fn main() -> Result<(), Error> {
    let _rillrate = RillRate::install("my-app");
    // Start your app routines here
    Ok(())
}

Add to your functions and modules all necessary metrics:

use rillrate::{Counter, Gauge, Logger};

fn my_routine() -> Result<(), Error> {
    let couter = Counter::new("my-counter");
    let gauge = Gauge::new("my-gauge");
    let logger = Logger::new("my-logger");

    // Usage in your code
    counter.inc(1.0);
    gauge.set(123.0);
    logger.log("my event");
}

Start your app and try to connect to http://localhost:9090.

Dependencies

~11–15MB
~320K SLoC