question

brtrach-MSFT avatar image
0 Votes"
brtrach-MSFT asked MichelleBlum-2831 edited

Application Insights is not showing all Function invocations.

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichelleBlum-2831 avatar image
0 Votes"
MichelleBlum-2831 answered MichelleBlum-2831 edited

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.