-
Notifications
You must be signed in to change notification settings - Fork 378
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
Conversation
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
This change is