Skip to main content

severity_of

Function severity_of 

Source
pub const fn severity_of(event: &Event) -> &'static str
Expand description

Stringified severity discriminant.

"ERROR" when Event::err_msg is populated, "INFO" otherwise. Shared between HttpSink (JSON body) and OtlpSink (OTel Severity mapping, both behind the remote-sinks feature) so both sinks agree on what a given event is.