TelemetryClient.TrackRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
member this.TrackRequest : Microsoft.ApplicationInsights.DataContracts.RequestTelemetry -> unit
Public Sub TrackRequest (request As RequestTelemetry)
Parameters
- request
- RequestTelemetry
Remarks
Applies to
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
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.
Remarks
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기