add log sampling at the Functions layer
"version": "[1.*, 2.0.0)"
},
"logging": {
- "default": "Information",
- "Host.Results": "Information",
- "Function": "Information",
- "Host.Aggregator": "Information",
- "console": {
- "default": "Information",
- "Host.Results": "Information",
- "Function": "Information",
- "Host.Aggregator": "Information"
- },
"logLevel": {
- "default": "Information",
- "Host.Results": "Information",
+ "default": "Warning",
+ "Host": "Warning",
"Function": "Information",
- "Function.FunctionA": "Information",
- "Host.Aggregator": "Information"
+ "Host.Aggregator": "Warning",
+ "logging:logLevel:Worker": "Warning",
+ "logging:logLevel:Microsoft": "Warning",
+ "AzureFunctionsJobHost:logging:logLevel:Host.Function.Console": "Warning"
},
"applicationInsights": {
"samplingSettings": {
- "isEnabled": false
+ "isEnabled": true,
+ "InitialSamplingPercentage": 100,
+ "maxTelemetryItemsPerSecond": 20,
+ "excludedTypes": "Exception"
}
}
},
