Just for reference here's my host.json. For the last 12 hours, I only had 3 traces in my App Insights logs, all valid warnings.
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"maxTelemetryItemsPerSecond": 20,
"excludedTypes": "Request;Exception"
},
"enableLiveMetricsFilters": true,
"enableDependencyTracking": true
},
"logLevel": {
"default": "Information",
"Function": "Information",
"Host.Aggregator": "Warning",
"Azure.Core": "Warning",
"Azure.Storage.Queues": "Warning",
"Azure.Storage.Blobs": "Warning",
"Host.Controllers.Host": "Warning",
"Microsoft.AspNetCore.Mvc.StatusCodeResult": "Warning",
"Microsoft.AspNetCore.Mvc.ChallengeResult": "Warning",
"Microsoft.Azure.WebJobs.Hosting.OptionsLoggingService": "Warning"
}
}
}