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

[PR #9031/9f0ae074 backport][3.11] Avoid tracing overhead in http_writer when there are no traces #9046

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Sep 6, 2024

This is a backport of PR #9031 as merged into master (9f0ae07).

What do these changes do?

If there are not traces set for the request, we would still create partial functions in ClientRequest and call them in http_writer

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

before
write_headers_before

after
write_headers_after

@bdraco bdraco enabled auto-merge (squash) September 6, 2024 19:29
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (a35a73b) to head (a80b5fb).
Report is 1 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.11    #9046   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files         108      108           
  Lines       34502    34502           
  Branches     4094     4094           
=======================================
  Hits        33731    33731           
  Misses        576      576           
  Partials      195      195           
Flag Coverage Δ
CI-GHA 97.66% <ø> (ø)
OS-Linux 97.34% <ø> (ø)
OS-Windows 94.91% <ø> (ø)
OS-macOS 97.03% <ø> (ø)
Py-3.10.11 97.12% <ø> (ø)
Py-3.10.14 97.05% <ø> (ø)
Py-3.11.9 97.28% <ø> (ø)
Py-3.12.5 97.38% <ø> (ø)
Py-3.9.13 97.02% <ø> (ø)
Py-3.9.19 96.96% <ø> (ø)
Py-pypy7.3.16 96.55% <ø> (-0.01%) ⬇️
VM-macos 97.03% <ø> (ø)
VM-ubuntu 97.34% <ø> (ø)
VM-windows 94.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 8f30c91 into 3.11 Sep 6, 2024
26 of 27 checks passed
@bdraco bdraco deleted the patchback/backports/3.11/9f0ae07459844d51a017fd0cfa4d0ca6092d1ee1/pr-9031 branch September 6, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant