Prima Datadog
This is an opinionated library to share code and approach to Datadog logging in prima.it
Getting started
You need to call Datadog::init
in your main binary, and to do so you'll need as argument a type that implements the Configuration
trait.
Inside the configuration
you'll find an implementation of this trait tailored for prima.it needs.
use ;
let configuration = new;
init;
Then you can use the macros exposed at the base level of the module
!;
decr!;
incr
The first argument is the metric name. It accepts string literal (like the previous example) or a type path that implements AsRef
and then
!;
incr!;
incr!;
incr!;
incr