Skip to main content

record_execution

Function record_execution 

Source
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 record
  • duration_ms - Operation duration in milliseconds
  • command_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.