Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Insights Dependency types

I just got started with Application Insights and wanted to highlight dependencies between different operations. Currently I am using this code:

using (var x = telemetry.StartOperation<DependencyTelemetry>("my TEst")) {
  x.Telemetry.Type = "SQL"; 
}

setting the Telemetry.Type to "SQL" makes the dependency appear as SQL DB which is fine and exactly what I want. But I could not find any information about what other "Types" are supported here and what their exact Type would be? e.g Blob Stores? Web APIs? AI with Icons thanks in advance, -gerhard

like image 813
Gerhard Brueckl Avatar asked Mar 15 '17 16:03

Gerhard Brueckl


People also ask

What are dependencies in app Insights?

A dependency is a component that is called by your application. It's typically a service called using HTTP, or a database, or a file system. Application Insights measures the duration of dependency calls, whether it's failing or not, along with additional information like name of dependency and so on.

What are dependency calls?

Dependency calls are requests, which your application makes to the external services (such as databases or REST services).

What is dependency telemetry?

Dependency Telemetry (in Application Insights) represents an interaction of the monitored component with a remote component such as SQL or an HTTP endpoint.

Should I use single or multiple application Insights resources?

As per the FAQ: use one instance: Should I use single or multiple Application Insights resources? Use a single resource for all the components or roles in a single business system. Use separate resources for development, test, and release versions, and for independent applications.


2 Answers

There's no limitation that I'm aware of.
Some dependencies are reported automatically by the SDK (such as SQL, Ajax), so these will get a pretty name in Application Map, but you can put there whatever makes sense in your application's BL.
The list of out-of-the-box dependency types Application Insights collect right now can be found here, although the documentation does not contain the dependency type string that you're interested in.
Non definitive list from my own experience:

  • SQL
  • HTTP
  • Azure queue
  • Azure table
  • Azure blob
  • Azure DocumentDb
  • Ajax
  • Redis
  • Azure Service Bus
  • MySQL
  • Azure IoT Hub
  • Azure Event Hubs
like image 165
EranG Avatar answered Oct 21 '22 01:10

EranG


The are dependency types getting custom icons in Application Map:
- SQL
- Custom HTTP types, based on the following criteria:
1. Azure blob: when host name ends with blob.core.windows.net
2. Azure table: when host name ends with table.core.windows.net
3. Azure queue: when host name ends with queue.core.windows.net
4. Web Service: when host name ends with .asmx or contains .asmx/
5. WCF Service: when host name ends with .svc or contains .svc/
- All other HTTP or AJAX

Going forward the list will be extended with other dependency types that will get custom item in ApplicationMap.

like image 33
Alex Bulankou Avatar answered Oct 21 '22 01:10

Alex Bulankou