pub fn record_execution(
result: &OperationResult,
duration_ms: i64,
command_line: Option<String>,
) -> Result<()>Expand description
Record operation execution to log.
Extracts data from OperationResult and records it to the database.
This function is non-blocking - errors are logged but don’t fail the operation.
§Arguments
result- Operation result to recordduration_ms- Operation duration in millisecondscommand_line- Optional full command line for reproducibility
§Returns
Returns Ok(()) if recording succeeds, or Err if it fails.
Callers should log errors as warnings, not fail the operation.