Skip to main content

report_stream_failure

Function report_stream_failure 

Source
async fn report_stream_failure(
    conn: &mut PgConnection,
    message: String,
    stack_trace: Option<String>,
    details: Value,
)
Expand description

Records a failure that killed a turn in error_variants/error_occurrences.

A streaming response has already sent its headers by the time a round can fail, so actix never calls ResponseError::error_response for it and the backend’s usual reporting path sees none of these – without this they exist only as a log line. Best effort: the turn is already being torn down, so a failure to report is logged and otherwise ignored.