Adventures with App Insights: Tracking Custom Events in .NET Core Function Application

WARNING: According to this article, https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection#logging-services, is NOT A RECOMMENDED PRACTICE. While what I have done works, according to the article, adding¬†AddApplicationInsightsTelemetry()¬†to the services collection¬†“registers services that conflict with services provided by the environment.” In a previous article, we looked at how to track custom events in Azure Application Insights from a .NET Core Web…

Adventures with Cosmos: Alerting and 429 Status Codes

During periods of peak transactions Cosmos may return a 429 Status Code – Too Many Requests, which means the collection has exceeded the provisioned throughput limit (RUs) and that you should retry the request after the server specified retry after duration. I want to setup alerting on both an Azure Function and the underlying Cosmos…