TelemetryClient.TrackRequest Method

Definition

Overloads

TrackRequest(RequestTelemetry)

Send information about a request handled by the application.

TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about a request handled by the application.

TrackRequest(RequestTelemetry)

Send information about a request handled by the application.

public:
 void TrackRequest(Microsoft::VisualStudio::ApplicationInsights::DataContracts::RequestTelemetry ^ request);
public void TrackRequest (Microsoft.VisualStudio.ApplicationInsights.DataContracts.RequestTelemetry request);
member this.TrackRequest : Microsoft.VisualStudio.ApplicationInsights.DataContracts.RequestTelemetry -> unit
Public Sub TrackRequest (request As RequestTelemetry)

Parameters

Applies to

TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean)

Send information about a request handled by the application.

public:
 void TrackRequest(System::String ^ name, DateTimeOffset timestamp, TimeSpan duration, System::String ^ responseCode, bool success);
public void TrackRequest (string name, DateTimeOffset timestamp, TimeSpan duration, string responseCode, bool success);
member this.TrackRequest : string * DateTimeOffset * TimeSpan * string * bool -> unit
Public Sub TrackRequest (name As String, timestamp As DateTimeOffset, duration As TimeSpan, responseCode As String, success As Boolean)

Parameters

name
String

The request name.

timestamp
DateTimeOffset

The time when the page was requested.

duration
TimeSpan

The time taken by the application to handle the request.

responseCode
String

The response status code.

success
Boolean

True if the request was handled successfully by the application.

Applies to