TelemetryClient.TrackRequest Method

Definition

Overloads

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)

Send information about a request handled by the application.

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);
Parameters

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);
Parameters
name
String

The request name.

startTime
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.