prima_datadog 0.9.2

An opinionated library to share code and approach to Datadog logging in prima.it
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub enum TestEvent {
    Test1,
}

impl AsRef<str> for TestEvent {
    fn as_ref(&self) -> &str {
        match self {
            TestEvent::Test1 => "test1_event",
        }
    }
}

impl std::fmt::Display for TestEvent {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.as_ref())
    }
}