TelemetryClient.TrackDependency TelemetryClient.TrackDependency TelemetryClient.TrackDependency Method

Definition

Overloads

TrackDependency(DependencyTelemetry) TrackDependency(DependencyTelemetry) 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) TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean) TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean)

Send information about an external dependency (outgoing call) in the application.

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

Send information about an external dependency (outgoing call) in the application.

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

Send information about an external dependency (outgoing call) in the application.

TrackDependency(DependencyTelemetry) TrackDependency(DependencyTelemetry) 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);
member this.TrackDependency : Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry -> unit
Public Sub TrackDependency (telemetry As DependencyTelemetry)

Parameters

Remarks

Learn more

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

Warning

This API is now obsolete.

Send information about an external dependency (outgoing call) in the application.

[System.Obsolete("Please use a different overload of TrackDependency")]
public void TrackDependency (string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, bool success);
member this.TrackDependency : string * string * DateTimeOffset * TimeSpan * bool -> unit
Public Sub TrackDependency (dependencyName As String, data As String, startTime As DateTimeOffset, duration As TimeSpan, success As Boolean)

Parameters

dependencyName
String String String

Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.

data
String String String

Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.

startTime
DateTimeOffset DateTimeOffset DateTimeOffset

The time when the dependency was called.

duration
TimeSpan TimeSpan TimeSpan

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

success
Boolean Boolean Boolean

True if the dependency call was handled successfully.

Remarks

Learn more

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

Send information about an external dependency (outgoing call) in the application.

public void TrackDependency (string dependencyTypeName, string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, bool success);
member this.TrackDependency : string * string * string * DateTimeOffset * TimeSpan * bool -> unit
Public Sub TrackDependency (dependencyTypeName As String, dependencyName As String, data As String, startTime As DateTimeOffset, duration As TimeSpan, success As Boolean)

Parameters

dependencyTypeName
String String String

External dependency type. Very low cardinality value for logical grouping and interpretation of fields. Examples are SQL, Azure table, and HTTP.

dependencyName
String String String

Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.

data
String String String

Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.

startTime
DateTimeOffset DateTimeOffset DateTimeOffset

The time when the dependency was called.

duration
TimeSpan TimeSpan TimeSpan

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

success
Boolean Boolean Boolean

True if the dependency call was handled successfully.

Remarks

Learn more

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

Send information about an external dependency (outgoing call) in the application.

public void TrackDependency (string dependencyTypeName, string target, string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, string resultCode, bool success);
member this.TrackDependency : string * string * string * string * DateTimeOffset * TimeSpan * string * bool -> unit
Public Sub TrackDependency (dependencyTypeName As String, target As String, dependencyName As String, data As String, startTime As DateTimeOffset, duration As TimeSpan, resultCode As String, success As Boolean)

Parameters

dependencyTypeName
String String String

External dependency type. Very low cardinality value for logical grouping and interpretation of fields. Examples are SQL, Azure table, and HTTP.

target
String String String

External dependency target.

dependencyName
String String String

Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.

data
String String String

Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.

startTime
DateTimeOffset DateTimeOffset DateTimeOffset

The time when the dependency was called.

duration
TimeSpan TimeSpan TimeSpan

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

resultCode
String String String

Result code of dependency call execution.

success
Boolean Boolean Boolean

True if the dependency call was handled successfully.

Remarks

Learn more

Applies to