Skip to content

Conversation

@MihaZupan
Copy link
Member

  • Removed (renamed) ResponseHeadersBegin
  • Added RequestHeadersStart, RequestHeadersStop
  • Added RequestContentStart, RequestContentStop(long contentLength)
  • Added ResponseHeadersStart, ResponseHeadersStop

@MihaZupan MihaZupan added this to the 6.0.0 milestone Aug 31, 2020
@MihaZupan MihaZupan requested review from a team and ManickaP August 31, 2020 13:11
@ghost
Copy link

ghost commented Aug 31, 2020

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@MihaZupan
Copy link
Member Author

/azp run runtime-libraries outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Request(Start/Stop) we are guarding against dangling Stop events with telemetryStarted booleans. Also Stops are called in finally blocks so the events are paired properly in all cases.
Any reason we forgo this with these events?

@MihaZupan
Copy link
Member Author

RequestStart/Stop are also updating the internal request started/aborted/finished numbers used by Counters. The extra logic around them is to ensure counters are reporting correct values.

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@MihaZupan
Copy link
Member Author

Test failures: #41381, #41531, #41530, #40798

@MihaZupan MihaZupan merged commit a3e6ff5 into dotnet:master Aug 31, 2020
MihaZupan added a commit to MihaZupan/runtime that referenced this pull request Aug 31, 2020
MihaZupan added a commit that referenced this pull request Aug 31, 2020
* 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 <[email protected]>

* Add Request/Response Headers/Content Start/Stop events (#41590)

Co-authored-by: Marie Píchová <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants