Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP Request/Response Headers/Content Start/Stop events #41590

Merged
merged 1 commit into from
Aug 31, 2020

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 ManickaP and a team 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 <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>
@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.

None yet

2 participants