Application Insights is not showing all Function invocations.

brtrach-MSFT 15,866 Reputation points Microsoft Employee
2021-05-19T19:41:25.29+00:00

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?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michelle Blum 811 Reputation points Microsoft Employee
    2021-05-19T20:25:30.033+00:00

    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

    0 comments No comments