November 20, 2021 by Admin
You need to resolve the log capacity issue.
What should you do?
- Create an Application Insights Telemetry Filter
- Change the minimum log level in the host.json file for the function
- Implement Application Insights Sampling
- Set a LogCategoryFilter during startup
Scenario, the log capacity issue: Developers report that the number of log message in the trace output for the processor is too high, resulting in lost log messages.
Sampling is a feature in Azure Application Insights. It is the recommended way to reduce telemetry traffic and storage, while preserving a statistically correct analysis of application data. The filter selects items that are related, so that you can navigate between items when you are doing diagnostic investigations. When metric counts are presented to you in the portal, they are renormalized to take account of the sampling, to minimize any effect on the statistics.
Sampling reduces traffic and data costs, and helps you avoid throttling.