Tried a lot of places, any help is appreciated thanks
Disable Dependency Telemetry logs, Python
Ashrith P
0
Reputation points
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
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