langchain/callbacks/mlflow_callback.py/MlflowCallbackHandler/on_chain_error
class MlflowCallbackHandler:    def on_chain_error(
        self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
    ) -> None:
        """Run when chain errors."""
        self.metrics["step"] += 1
        self.metrics["errors"] += 1