'Dependency tracking is not working after azure function app deployment

Currently have an azure function v3 in .netcore 3.1 with the following host.json

    {
  "version": "2.0",
  "extensions": {
    "http": {
      "maxConcurrentRequests": 300
    }
  },
  "logging": {
    "applicationInsights": {
      "EnableDependencyTracking": true,
      "DependencyTrackingOptions": {
        "enableSqlCommandTextInstrumentation": true
      }
    }
  }
}

Things work fine(It track dependency) while running locally but after function app deployment it doesn't track SQL or HTTP or any other dependency.

enter image description here

Has anyone run into this issue before or have any advice on how to maintain default dependency tracking?



Solution 1:[1]

Verify Default Loglevel should be "Information" for dependency tracking

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 n1k1