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

feat(common): include the request/response type name in the RPC log #7782

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

devbww
Copy link
Contributor

@devbww devbww commented Dec 23, 2021

This change is Reviewable

@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: afac72f516c48f18bc79b7dcb1e8bf660a01027c

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link

codecov bot commented Dec 23, 2021

Codecov Report

Merging #7782 (afac72f) into main (6b4e66f) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7782      +/-   ##
==========================================
- Coverage   95.15%   95.15%   -0.01%     
==========================================
  Files        1278     1278              
  Lines      115078   115080       +2     
==========================================
- Hits       109502   109501       -1     
- Misses       5576     5579       +3     
Impacted Files Coverage Δ
google/cloud/internal/log_wrapper.cc 100.00% <100.00%> (ø)
google/cloud/internal/log_wrapper_test.cc 99.35% <100.00%> (ø)
...le/cloud/storage/internal/curl_download_request.cc 89.75% <0.00%> (-0.71%) ⬇️
.../cloud/storage/benchmarks/throughput_experiment.cc 74.37% <0.00%> (-0.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b4e66f...afac72f. Read the comment docs.

@devbww devbww marked this pull request as ready for review December 23, 2021 07:46
@devbww devbww requested a review from a team as a code owner December 23, 2021 07:46
Copy link
Contributor

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Very good idea, thanks.

@@ -60,6 +60,7 @@ TEST(LogWrapper, DefaultOptions) {
TracingOptions tracing_options;
// clang-format off
std::string const text =
R"pb(google.spanner.v1.Mutation { )pb"
Copy link
Contributor

Choose a reason for hiding this comment

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

Feels like this could be a single raw string, maybe for another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the lack of newlines dooms this to being some form of concatenation.

@@ -118,7 +121,9 @@ TEST(LogWrapper, Truncate) {
TracingOptions tracing_options;
tracing_options.SetOptions("truncate_string_field_longer_than=8");
// clang-format off
std::string const text =R"pb(insert { )pb"
std::string const text =
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ditto.

@devbww devbww merged commit 1f8432e into googleapis:main Dec 23, 2021
@devbww devbww deleted the log-wrapper-type-names branch December 23, 2021 17:05
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.

3 participants