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
10
11
12
usdt::tide:startroute 
{ 
    @start[arg2] = nsecs;
}
usdt::tide:endroute 
/@start[arg2]/ 
{ 
    printf("method: %s path: %s id: %d status: %d headers:%s\n", str(arg0), str(arg1), arg2, arg3, str(arg4));
    printf("Request time %d ns\n", (nsecs - @start[arg2]));
    delete(@start[arg2]);

}