Encapsulates information about a web request handled by the application.
public sealed class RequestTelemetry : Microsoft.ApplicationInsights.Extensibility.Implementation.OperationTelemetry, Microsoft.ApplicationInsights.DataContracts.ISupportAdvancedSampling
type RequestTelemetry = class inherit OperationTelemetry interface ITelemetry interface ISupportProperties interface ISupportMetrics interface ISupportAdvancedSampling interface ISupportSampling
Public NotInheritable Class RequestTelemetry Inherits OperationTelemetry Implements ISupportAdvancedSampling
You can send information about requests processed by your web application to Application Insights by passing an instance of the RequestTelemetry class to the TrackRequest(RequestTelemetry) method. Learn more
Initializes a new instance of the RequestTelemetry class.
|RequestTelemetry(String, DateTimeOffset, TimeSpan, String, Boolean)||
Initializes a new instance of the RequestTelemetry class with the given
Gets the object that contains contextual information about the application at the time when it handled the request.
Gets or sets the amount of time it took the application to handle the request.
Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.
Gets or sets the HTTP method of the request.
Gets or sets Request ID.
Gets item type for sampling evaluation.
Gets a dictionary of application-defined request metrics. Learn more
Gets or sets human-readable name of the requested page.
Gets a dictionary of application-defined property names and values providing additional information about this request. Learn more
Gets or sets response code returned by the application after handling the request.
Gets or sets the value that defines absolute order of the telemetry item.
Gets or sets the source for the request telemetry object. This often is a hashed instrumentation key identifying the caller.
Gets or sets the start time of the operation.(Inherited from OperationTelemetry)
Gets or sets a value indicating whether application handled the request successfully.
Gets or sets date and time when telemetry was recorded.
Gets or sets request url (optional).
Deeply clones a RequestTelemetry object.
Allow to call OperationTelemetry.Sanitize method from child classes.(Inherited from OperationTelemetry)
Explicit Interface Implementations
Gets or sets data sampling percentage (between 0 and 100).
Sanitizes the properties based on constraints.
Gets envelope name for ITelemetry object.
Sets envelope name for ITelemetry object.