tide-trace 0.5.0

Minimum overhead USDT middleware to dynamically trace tide with BPF or DTrace
Documentation
1
2
3
4
5
6
7
8
9
#[async_std::main]
async fn main() -> Result<(), std::io::Error> {
    let mut app = tide::new();
    app.with(tide_trace::USDTMiddleware::new());
    app.at("/route1").get(|_| async { Ok("Route 1") });
    app.at("/route2").get(|_| async { Ok("Route 2") });
    app.listen("127.0.0.1:8080").await?;
    Ok(())
}