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://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-sampling
https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling
Application Insights is not showing all Function invocations.
![](https://techprofile.blob.core.windows.net/images/wAnczKyrJEW-0tSusWUY8A.png?8D9C64)
brtrach-MSFT
15,866
Reputation points Microsoft Employee
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?
1 answer
Sort by: Most helpful
-
Michelle Blum 811 Reputation points Microsoft Employee
2021-05-19T20:25:30.033+00:00