Azure functions app throwing - Timeout value of 00:05:00 exceeded by function 'Functions.Analyticshandler' (Id: '78a8fa14-0b05-440a-9a81-6c0ebda9237b'). Initiating cancellation.

Punit katnalli 25 Reputation points
2025-03-06T10:44:03.22+00:00

We are facing occasionally server time out error from the azure functions

Error log - Timeout value of 00:05:00 exceeded by function 'Functions.Analyticshandler' (Id: '78a8fa14-0b05-440a-9a81-6c0ebda9237b'). Initiating cancellation.

  • The function app is getting timed out. The app reads the input and before the execution of the code there is a pause of 5 minutes due to which the function app gets timed out.

We need assistance on debugging this issue.

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 29,846 Reputation points Microsoft Employee
    2025-03-06T18:30:38.1933333+00:00

    Hi @Punit katnalli I highly suggest enabling Application Insights on your function app. There, you'll have to capability to observe end-to-end transactions and where in the transaction it's taking the longest.

    I'm assuming you already some console.log() that's printing out. You want to include some sort of correlation value that's tied to the function invocation. That will allow you to search by the value to see the log output that's related to that operation. If you don't have application insights enabled, you can refer to https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitoring on how to enable and get started.

    With Application Insights enabled, I've personally used https://pacodelacruz.io/correlated-structured-logging-on-azure-functions as guide to get my logging to where I wanted it to be. Just make sure host.json logging is configured appropriately for your use case.

    Let me know if you need further assistance with this.

    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.