Uh oh!
There was an error while loading. Please reload this page.
Moved HTTP request telemetry to HttpClient.SendAsync - #41022
Conversation
ghost
commented
Aug 19, 2020
Tagging subscribers to this area: @dotnet/ncl |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
So now you only get the telemetry if you use HtrpClient, but not if you use HttpMessageInvoker?
There was a problem hiding this comment.
Yes. Though in the previous state of things, you got the telemetry only with SocketsHandler and not with any custom handler...
However, we can introduce child events to cover HttpMessageInvoker etc. This event pair should be the main, all encompassing one. And in case a user wants to use the invoker directly, we should provide them with examples how to plug in their own telemetry to achieve the same.
I've some thoughts about this and I'm trying to put it all in writing in #40776 (not yet finished though).
150322e to
508b24eCompare508b24e to
ec189d4CompareMihaZupan
commented
Aug 26, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
MihaZupan
commented
Aug 26, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
MihaZupan
commented
Aug 27, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ManickaP
commented
Aug 28, 2020
This also fixes: #40896 |
ManickaP
left a comment
There was a problem hiding this comment.
Two things in HttpMessageInvoker otherwise LGTM. However, I cannot approve since it's my PR originally. @dotnet/ncl could anyone approve once all is addressed?
And thank you for taking this over and finishing ❤️
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
alnikola
left a comment
There was a problem hiding this comment.
Please, resolve all the Marie's comments.
Otherwise, LGTM
I pushed more changes here:
@ManickaP@alnikola Please re-review (should be simple to review on a commit-by-commit basis) |
MihaZupan
commented
Aug 28, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ManickaP
left a comment
There was a problem hiding this comment.
Single comment, otherwise LGTM.![]()
Uh oh!
There was an error while loading. Please reload this page.
MihaZupan
commented
Aug 28, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ManickaP
commented
Aug 28, 2020
Runtime CI failure: #41511 |
Outerloop CI Failures: All of them are timout related and do not seem to be related to the changes made in this PR. |
MihaZupan
commented
Aug 29, 2020
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Moved HTTP request telemetry to HttpClient.SendAsync * Added ResponseContent and helper methods events. * Rework helper method activity nesting * Expand Telemetry tests * Also log RequestStart/Stop in HttpMessageInvoker * Update RequestStart signature * RequestAborted => RequestFailed rename * ResponseContent Begin => Start/Stop * Fix HttpMessageInvoker implementation * Add Synchronous request Telemetry tests * Check telemetryStarted before ResponseContentStart Co-authored-by: MihaZupan <mihazupan.zupan1@gmail.com>
* System.Net Telemetry style changes (#41527) * Change HandshakeStop SslProtocols parameter to enum * Parameterize Http11/Http20 events * Add dummy request to ensure Http2 settings are received * Moved HTTP request telemetry to HttpClient.SendAsync (#41022) * Moved HTTP request telemetry to HttpClient.SendAsync * Added ResponseContent and helper methods events. * Rework helper method activity nesting * Expand Telemetry tests * Also log RequestStart/Stop in HttpMessageInvoker * Update RequestStart signature * RequestAborted => RequestFailed rename * ResponseContent Begin => Start/Stop * Fix HttpMessageInvoker implementation * Add Synchronous request Telemetry tests * Check telemetryStarted before ResponseContentStart Co-authored-by: MihaZupan <mihazupan.zupan1@gmail.com> * Add Request/Response Headers/Content Start/Stop events (#41590) Co-authored-by: Marie Píchová <11718369+ManickaP@users.noreply.github.com>
Moved HTTP request telemetry to HttpClient.SendAsync
Added events for ResponseContent
Added helper methods events
Contributes to #40776