I'm using Azure functions and Application Insights together (C# .NET Core 3.1). When passing an incorrect function key value, using the x-functions-key header, a 401 is returned as expected, however, this is not logged in Application Insights and only shows in Azure Monitor. All other requests after authentication are logged as expected (500, 200, etc.). As I primarily use Application Insights for setting up alerts and notifications, is there a way to have the 401s logged there as well or will I need to do this separately in Azure Monitor?
