'Azure logic apps total duration is different then sum of actions

I'm having issues troubleshooting a failure in Azure logic app. As you can see in this image this image Although the total duration of the logic app was more than four minutes, the actions took less than a second each. How can I get the true breakdown of the four minutes?

UPDATE:

I've added logs as Huri advised and now I can see there are 5 minutes between the workflowRunStarted and the first action as seen in the image below logic apps log

I still don't understand why this is happening :(



Solution 1:[1]

You can use "Log Analytics workspace" to see more logs of your logic app.

1. Create a "Log Analytics workspace" and add "Logic Apps Management" in it, you can refer to this tutorial.

2. Go to your logic app and configure the "Diagnostic settings", please refer to the steps on this tutorial.

3. After completing the configuration above, please wait for a few minutes and then run your logic app serval times for test (The logs in Log Analytics workspace will be a little bit of a delay, I wait for more than 30 minutes. It just show the logs of running instance which run after 30 minutes of the "Diagnostic settings" deployment).

4. Go to your "Log Analytics workspace", click "Workspace summary", then click your logic app name. enter image description here

You can see more details of the logs in it. enter image description here

Solution 2:[2]

This may be down to Concurrency Control. If you have your trigger set with a Degree of Parallelism to say 5 only 5 instances can run simultaneously. Any other triggers that fire will cause the Logic App to have a waiting state. Technically it has started so the runtime will look worse as a result.

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 Hury Shen
Solution 2 RDDWH