azure-docs-sdk-java icon indicating copy to clipboard operation
azure-docs-sdk-java copied to clipboard

Dependency tracking for CosmosDB and RabbitMQ

Open abhiramani-iptiq opened this issue 7 years ago • 2 comments

Hi Step 5 under heading:Configure your downloaded Spring Boot Application to use Application Insights shows: telemetryClient.trackDependency("SQL", "Insert", new Duration(0, 0, 1, 1, 1), true); how to track SQL dependency

we have dependency on Azure CosmosDB and RabbitMQ.are these 2 dependency supported? and what would be exact syntax to add those dependency?

[Enter feedback here]


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

abhiramani-iptiq avatar Oct 23 '18 20:10 abhiramani-iptiq

@abhiramani-iptiq thanks for creating an issue. The telemetryClient.trackDependency() is purely an API which you can use to manually wrap any dependency calls that you would like to track. This API is not used for automatic dependency collection. So yes, you can do something like this

telemetryClient.trackDependency(dependencyName, command, duration, success)

Please remember that you would need to manually track the success of the command, the name of the command you are using and the timing.

Automatic dependency collection using Application Insights Java Agent https://docs.microsoft.com/en-us/azure/application-insights/app-insights-java-agent is only supported for MySQL, MsSQL, Oracle DB and Redis.

dhaval24 avatar Oct 24 '18 14:10 dhaval24

applicationinsights-spring-boot-starter 1.1.1 ceased working. Upgrading to 2.4.1, it works like charm with spring boot 2.1.7. Is it possible to let Spring Boot start parent manage the version of this artifact, so developers don't need to handle compatibility manually?

petetian avatar Sep 17 '19 14:09 petetian