I have an Azure Functions app that is running on a timer trigger that I don't expect to exceed the 10 minute timeout limit, but I would like to receive an alert in the unlikely event that the application runs longer than 10 minutes. Is this possible to do in Application Insights? I didn't see an alert trigger for this use case. In Application Insights there is a "Long dependency duration" in the Smart Detection settings where I can add an email and there's also a "Failure Anomalies" alert rule already set up. Will either of these alert me if a function is running longer than 10 minutes?
I'd also like an alert if an individual function instance encounters any type of exception. I can set this up myself in the Python code by wrapping my code in a try except block and emailing if an exception is caught, but it would be easier if this was possible in Application Insights.