We are developing a fairly complex Function app composed of several functions that's running but every time some of the functions logs some error, the error log for that function in order to show in monitoring is taking 5 minutes to appear, and sometimes even longer. This is causing the feedback loop too long and slowing us down noticeably.
Each successful whole execution of the function only takes 300-500 ms on average. We are on development phase so the whole instance is under no stress, not even high load and yet we cannot see the error log until several minutes have passed. We are not sure but if you print the content of some variable it seems to take longer (if you use logging.info method instead of logging.error).
I have seen some answers on stackoverflow mentioning you can send the logs to other service like a DB, or I was thinking, to some azure storage container but we will be dealing with many different tenants and azure storage containers so I don't want to complicate things like this.
Is there any way to make the functions error log appear on each function's monitoring log right away or at least with a few seconds of delays?