My Function should have run more than what is being shown in my Application Insights resource. It looks like the app is working as intended, why would Application Insights not show all my Data?
My Function should have run more than what is being shown in my Application Insights resource. It looks like the app is working as intended, why would Application Insights not show all my Data?
By default for Azure Functions with Application Insights enabled, a sampling flag is set to True. To view more Function invocations in Application Insights Logging, we can go and change this flag to false in host.json for all entries or set the maximum number of executions per second to a higher value for a greater number of entries.
More information can be found here-
https://docs.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-sampling
https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling
7 people are following this question.