Disable Dependency Telemetry logs, Python

Ashrith P 0 Reputation points
2025-04-30T18:29:17.15+00:00

I have a function app that has a durable function built with python.

here is my host.json

{
  "version": "2.0",
  "functionTimeout": "00:30:00",
  "logging": {
    "logLevel": {
      "default": "Warning"
    },
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request;Dependency",
        "maxTelemetryItemsPerSecond": 10
      },
      "enableLiveMetrics": false,
      "enableDependencyTracking": false
    }
  },
  "telemetryMode": "OpenTelemetry",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  },
  "extensions": {
    "durableTask": {
      "hubName": "CarenoteOrchestrationHub",
      "maxConcurrentActivityFunctions": 10,
      "maxConcurrentOrchestratorFunctions": 10,
      "storageProvider": {
        "partitionCount": 4,
        "trackingStoreNamePrefix": "DurableTask",
        "maxQueuePollingInterval": "00:05:00"  
      },
      "tracing": {
        "traceInputsAndOutputs": false,
        "traceReplayEvents": false
      },
      "useGracefulShutdown": true
    }
  }
}


I am seeing these Dependency logs being made to my storage

Screenshot 2025-04-30 at 11.58.19 PM

how do i disable these?

Also in my function app i have this setting, not sure why i am still seeing those logs and live stream as well

resource = Resource.create({
    "service.name": Config.OTEL_SERVICE_NAME,
    "service.instance.id": os.getenv("WEBSITE_INSTANCE_ID", socket.gethostname())
})
configure_azure_monitor(
    connection_string=os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING"),
    instrumentation_options={"azure_sdk": {"enabled": False}, "requests": {"enabled": False}},
    resource=resource,
)

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,723 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ashrith P 0 Reputation points
    2025-04-30T18:30:52.1466667+00:00

    Tried a lot of places, any help is appreciated thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.