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

fix(storage): tracing should decorate retries #12314

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Aug 4, 2023

Part of the work for #12294


This change is Reviewable

@coryan coryan temporarily deployed to internal August 4, 2023 11:49 — with GitHub Actions Inactive
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Aug 4, 2023
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (826df2a) 93.54% compared to head (aa28782) 93.54%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12314   +/-   ##
=======================================
  Coverage   93.54%   93.54%           
=======================================
  Files        2017     2017           
  Lines      178384   178411   +27     
=======================================
+ Hits       166866   166896   +30     
+ Misses      11518    11515    -3     
Files Changed Coverage Δ
google/cloud/storage/client.cc 86.32% <100.00%> (+0.34%) ⬆️
google/cloud/storage/client_test.cc 98.72% <100.00%> (+0.25%) ⬆️

... and 6 files with indirect coverage changes

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

@coryan coryan temporarily deployed to internal August 4, 2023 13:01 — with GitHub Actions Inactive
@coryan coryan marked this pull request as ready for review August 4, 2023 13:30
@coryan coryan requested a review from a team as a code owner August 4, 2023 13:30
google/cloud/storage/client_test.cc Outdated Show resolved Hide resolved
google/cloud/storage/client_test.cc Outdated Show resolved Hide resolved
.set<UnifiedCredentialsOption>(MakeInsecureCredentials())
.set<internal::UseRestClientOption>(true)
.set<TracingComponentsOption>({"raw-client"});
#ifdef GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be unconditional, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sadly not at the moment, the option is inside a #ifdef block. Created #12316

Copy link
Contributor

Choose a reason for hiding this comment

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

You know, I carefully went off and read the header before making the comment, and still missed the conditionals. Sigh.

@coryan coryan temporarily deployed to internal August 4, 2023 15:28 — with GitHub Actions Inactive
@coryan coryan enabled auto-merge (squash) August 4, 2023 15:28
@dbolduc dbolduc disabled auto-merge August 4, 2023 15:35
Copy link
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

I disabled auto merge.

If you think I am nitting, then just ignore me.

google/cloud/storage/client_test.cc Outdated Show resolved Hide resolved
google/cloud/storage/client_test.cc Outdated Show resolved Hide resolved
@coryan coryan force-pushed the fix-storage-tracing-client-wraps-retry-client branch from 2c77f95 to aa28782 Compare August 4, 2023 16:46
@coryan coryan temporarily deployed to internal August 4, 2023 16:46 — with GitHub Actions Inactive
@coryan coryan merged commit 63a9b82 into googleapis:main Aug 4, 2023
@coryan coryan deleted the fix-storage-tracing-client-wraps-retry-client branch August 4, 2023 17:52
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.

3 participants