21 releases (13 breaking)

0.30.0-alpha.4 May 29, 2021
0.24.0 Mar 22, 2021

#61 in Debugging

Download history 204/week @ 2021-02-20 60/week @ 2021-02-27 16/week @ 2021-03-06 250/week @ 2021-03-13 218/week @ 2021-03-20 37/week @ 2021-03-27 45/week @ 2021-04-03 53/week @ 2021-04-10 34/week @ 2021-04-17 40/week @ 2021-04-24 35/week @ 2021-05-01 38/week @ 2021-05-08 22/week @ 2021-05-15 46/week @ 2021-05-22 35/week @ 2021-05-29 29/week @ 2021-06-05

297 downloads per month
Used in 2 crates

MIT/Apache

195KB
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

~12–16MB
~331K SLoC