TelemetryClient.TrackRequest TelemetryClient.TrackRequest TelemetryClient.TrackRequest Method

Definition

Overloads

TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry)

Send information about a request handled by the application. Create a separate RequestTelemetry instance for each call to TrackRequest(RequestTelemetry).

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

Send information about a request handled by the application.

TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry) TrackRequest(RequestTelemetry)

Send information about a request handled by the application. Create a separate RequestTelemetry instance for each call to TrackRequest(RequestTelemetry).

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

Parameters

Remarks

Learn more

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

Send information about a request handled by the application.

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

Parameters

name
String String String

The request name.

startTime
DateTimeOffset DateTimeOffset DateTimeOffset

The time when the page was requested.

duration
TimeSpan TimeSpan TimeSpan

The time taken by the application to handle the request.

responseCode
String String String

The response status code.

success
Boolean Boolean Boolean

True if the request was handled successfully by the application.

Remarks

Learn more

Applies to