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

impl(storage): trace spans for ReadObject backoffs #14472

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jul 13, 2024

This change is Reviewable

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jul 13, 2024
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.59%. Comparing base (601bd52) to head (19bf53e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14472      +/-   ##
==========================================
- Coverage   93.59%   93.59%   -0.01%     
==========================================
  Files        2315     2315              
  Lines      207140   207211      +71     
==========================================
+ Hits       193875   193929      +54     
- Misses      13265    13282      +17     

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

@coryan coryan marked this pull request as ready for review July 13, 2024 17:29
@coryan coryan requested review from a team as code owners July 13, 2024 17:29
@@ -52,7 +53,10 @@ RetryObjectReadSource::RetryObjectReadSource(
offset_direction_(request_.HasOption<ReadLast>() ? kFromEnd
: kFromBeginning),
current_offset_(InitialOffset(offset_direction_, request_)),
backoff_(std::move(backoff)) {}
backoff_(std::move(backoff)) {
backoff_ = google::cloud::internal::MakeTracedSleeper(
Copy link
Member

Choose a reason for hiding this comment

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

optional: do this in the member initializer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@coryan coryan enabled auto-merge (squash) July 13, 2024 20:54
@coryan coryan merged commit f2bd9a9 into googleapis:main Jul 13, 2024
63 checks passed
@coryan coryan deleted the impl-storage-better-traces-for-read-object branch July 13, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants