I am looking for to track multiple methods(A=>B=>C) execution time with application insight custom metric. From the Doc I can get the execution stats for the main worker process, but is there any way I can also get the execution time of dependency methods calls also in application insight ?
Asked
Active
Viewed 795 times
1

Bhargavi Annadevara
- 4,923
- 2
- 13
- 30

Koushik mondal
- 187
- 2
- 10
-
Have you had a chance to check the provided solution? – Bhargavi Annadevara Feb 23 '21 at 16:51
1 Answers
1
As mentioned in the same doc, dependency collection is enabled by default. While there are many dependencies that are automatically collected, you can still track one manually with a TrackDependency call if it isn't auto-collected.
App Insights measures the duration of dependency calls, whether its failing or not, along with additional information like name of dependency and so on. The collected data can be found in Application Map, Transaction diagnostics, or queried from Log Analytics.
Example:
This should enable you to investigate specific dependency calls and also correlate them to requests and exceptions. Dependency Tracking in Azure Application Insights is explained in great detail in this article.

Bhargavi Annadevara
- 4,923
- 2
- 13
- 30