6

I'm trying to discover why some of my function responses are taking 2+ seconds every so often and I've noticed that on these requests the app insights End-to-end transaction details there are large gaps between each dependency call, which is where I'm losing all my time.

Can anyone tell me why these gaps exist and why app insights doesn't show what's happening during that time? enter image description here

José Pedro
  • 1,097
  • 3
  • 14
  • 24
  • Any more info on why those gaps are there or how to see what took up the time? Did you end up manually adding logging to see what's taking up the time? – goku_da_master Mar 04 '22 at 22:20
  • @goku_da_master - we had a similar issue and the cause of app service and db not being in the same virtual network. See here - https://stackoverflow.com/questions/67409483/ef-core-3-1-14-recurring-cold-start – Varun Sharma Mar 22 '23 at 00:39

1 Answers1

3

It's possible that your function has a dependency that App Insights doesn't automatically collect information on.

Please take a look at the list of current auto-collected dependencies. If your dependency is not there, then you will need to manually track the dependency.

Andy T
  • 10,223
  • 5
  • 53
  • 95