Skip to content

Instantly share code, notes, and snippets.

@andrewleader
Last active January 31, 2020 18:36
Show Gist options
  • Save andrewleader/28b6b4903b3db6043378e818d3b3a8b3 to your computer and use it in GitHub Desktop.
Save andrewleader/28b6b4903b3db6043378e818d3b3a8b3 to your computer and use it in GitHub Desktop.
Disable dependencies/traces from Azure Functions Application Insights via host.json
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"initialSamplingPercentage": 0.0,
"minSamplingPercentage": 0.0,
"maxSamplingPercentage": 0.0,
"excludedTypes": "Event;Exception"
},
"enableLiveMetrics": false,
"enableDependencyTracking": false,
"enablePerformanceCountersCollection": false,
"httpAutoCollectionOptions": {
"enableHttpTriggerExtendedInfoCollection": false,
"enableW3CDistributedTracing": false,
"enableResponseHeaderInjection": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment