.netcore 3.1 web app taking randomly a lot of time to response

Viewed 120

I have a .netCore 3.1 on azure web app who interract with a CosmosDb database and some others services. Generally speaking the request time is correct :

enter image description here

But sometimes I have request who takes a lot of time to answer at any step of the process :

enter image description here

I can't figure it out and I don't know where I can begin to take a look. Looking at the webApp configuration, the "AlwaysOn" is on and there is a Get request on my API every 5 minutes.

Can it be something related to the servicePlan or ASE ? Or maybe the DI of my API ?

1 Answers

Thanks for asking question! To elaborate on this If the slow is due to any external dependencies, enabling Application Insight is helpful. You can investigate specific dependency calls and correlate them to requests and exceptions. Application Insights SDKs for .NET and .NET Core ships with DependencyTrackingTelemetryModule which is a Telemetry Module that automatically collects dependencies.

For more details See Dependency Tracking in Azure Application Insights

Related