question

RichardBurns-3786 avatar image
0 Votes"
RichardBurns-3786 asked ·

Azure Durable Functions Verbose Logging App Insights

We have just started using an Azure Durable Orchestration Function which is linked to application insights.

The telemetry is filling up with logs we cannot seem to stop:

Time 16:51:03 Message funcname-applease: Starting lease renewal with token xxxxxxxxxxxxxxxxxx Category DurableTask.AzureStorage EventId 123 ProcessId 8964

Time 16:51:03 Message funcname-applease: Lease renewal with token xxxxxxxxxxxxxxxxxx succeeded Category DurableTask.AzureStorage EventId 124

We are getting 100s a minute and despite our Logging settings they are not stopping:

 {
   "version": "2.0",
   "extensions": {
     "serviceBus": {
       "messageHandlerOptions": {
         "maxConcurrentCalls": 1
       }
     }
   },
   "functionTimeout": "00:04:59",
   "logging": {
     "applicationInsights": {
       "samplingSettings": {
         "isEnabled": true,
         "maxTelemetryItemsPerSecond": 20
       }
     },
     "logLevel": {
       "default": "Information",
       "Function": "Information",
       "Host.Results": "Information",
       "Host.Aggregator": "Information",
       "Host.Triggers.DurableTask": "Error",
       "DurableTask.AzureStorage": "Error",
       "DurableTask.Core": "Error"
     }
   }
 }

These messages do not appear to have a LogLevel and despite setting all of these to none through to only error they still keep coming.

Does anyone know how to stop these logs?

azure-functions
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @RichardBurns-3786, Thank you for reaching out. Based on the discussion here, the host.json log category filters are likely to be ignored if you have registered your own telemetry client. Can you please confirm the same?


0 Votes 0 ·
RichardBurns-3786 avatar image RichardBurns-3786 ChaitanyaNaykodiMSFT-9638 ·

Hello

We have no custom telemetry client registered. Just standard out of the box config.

I am not seeing these messages appear in the transactions in app insights but they are filling the live metrics.

Thanks for your help.

Richard

0 Votes 0 ·

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered ·

Hello @RichardBurns-3786, apologies for the delay. For Live Metrics the LogLevels used in the host.json are not applied. You might have to use the filter available in the portal for live metrics as shown below. As mentioned here by Brett it was decided to post everything in the Live Metrics stream regardless of the filters applied in the host.json file as these records are not persisted and there is no charge for Live Metrics usage. I have reached out to the team internally to understand if any progress has been made to fix this issue. Please let me know if there are any additional concerns. Thank you!
76441-image.png



image.png (6.9 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.