TelemetryClient.TrackDependency Method

Definition

Overloads

TrackDependency(DependencyTelemetry)

Send information about external dependency call in the application. Create a separate DependencyTelemetry instance for each call to TrackDependency(DependencyTelemetry)

TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean)

Send information about external dependency call in the application.

TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about external dependency call in the application.

TrackDependency(DependencyTelemetry)

Send information about external dependency call in the application. Create a separate DependencyTelemetry instance for each call to TrackDependency(DependencyTelemetry)

public void TrackDependency (Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry telemetry);
Parameters

TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean)

Send information about external dependency call in the application.

public void TrackDependency (string dependencyName, string commandName, DateTimeOffset startTime, TimeSpan duration, bool success);
Parameters
dependencyName
String

External dependency name.

commandName
String

Dependency call command name.

startTime
DateTimeOffset

The time when the dependency was called.

duration
TimeSpan

The time taken by the external dependency to handle the call.

success
Boolean

True if the dependency call was handled successfully.

TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about external dependency call in the application.

public void TrackDependency (string dependencyTypeName, string target, string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, string resultCode, bool success);
Parameters
dependencyTypeName
String

External dependency type.

target
String

External dependency target.

dependencyName
String

External dependency name.

data
String

Dependency call command name.

startTime
DateTimeOffset

The time when the dependency was called.

duration
TimeSpan

The time taken by the external dependency to handle the call.

resultCode
String

Result code of dependency call execution.

success
Boolean

True if the dependency call was handled successfully.