MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / get_json_event

Function get_json_event

src/logger.rs:109–115  ·  view source on GitHub ↗
(record: &log::Record)

Source from the content-addressed store, hash-verified

107pub const JSON_TARGET: &str = "codspeed::json";
108
109pub(super) fn get_json_event(record: &log::Record) -> Option<JsonEvent> {
110 if record.target() != JSON_TARGET {
111 return None;
112 }
113
114 Some(JsonEvent(record.args().to_string()))
115}

Callers 4

logMethod · 0.85
logMethod · 0.85
logMethod · 0.85
logMethod · 0.85

Calls 2

JsonEventClass · 0.85
argsMethod · 0.80

Tested by

no test coverage detected