Reputation: 181
Does anyone have some sample code for Azure Functions V2 to disable Dependency tracking via the host.json?
Upvotes: 1
Views: 1136
Reputation: 29940
In host.json, set the field enableDependencyTracking
to false
.
For more details, please refer to this article -> logging field -> applicationInsights field.
A sample of host.json to disable dependency tracking:
{
"logging": {
"applicationInsights": {
"samplingSettings": {
//other settings
},
"enableDependencyTracking": false
}
}
}
And the screenshot of sample from the official doc:
Upvotes: 2