Function send_event

Source
pub fn send_event(name: &str, details: &Value)
Expand description

Indicates to Antithesis that a certain event has been reached. It sends a structured log message to Antithesis that you may later use to aid debugging.

In addition to details, you also provide name, which is the name of the event that you are logging.

ยงExample

use serde_json::{json, Value};
use antithesis_sdk::lifecycle;

let info_value: Value = json!({
    "month": "July",
    "day": 17
});

lifecycle::send_event("start_day", &info_value);