Share via


NullBotTelemetryClient.TrackDependency Method

Definition

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);
abstract member TrackDependency : string * string * string * string * DateTimeOffset * TimeSpan * string * bool -> unit
override 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

Name of the command initiated with this dependency call. Low cardinality value. Examples are SQL, Azure table, and HTTP.

target
String

External dependency target.

dependencyName
String

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

data
String

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

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.

Implements

Applies to