-
Notifications
You must be signed in to change notification settings - Fork 53
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
[POC] add client side logging #3403
base: main
Are you sure you want to change the base?
Conversation
…g needs more work.
gax-java/gax/src/main/java/com/google/api/gax/logging/LoggingUtils.java
Outdated
Show resolved
Hide resolved
@Override | ||
public void start(Listener<RespT> responseListener, Metadata headers) { | ||
if (logger.isInfoEnabled()) { | ||
String requestId = UUID.randomUUID().toString(); |
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 requestId
is for debugging purpose for now and would be removed later?
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.
Yes for now. Later when we also log in tracer, we may need some requestID to track (not this one).
gax-java/gax/src/main/java/com/google/api/gax/logging/JsonContextMapHandler.java
Outdated
Show resolved
Hide resolved
gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcLoggingInterceptor.java
Outdated
Show resolved
Hide resolved
…g entries, add request id to track.
…ing interceptors.
Quality Gate failed for 'gapic-generator-java-root'Failed conditions |
Quality Gate failed for 'java_showcase_integration_tests'Failed conditions |
WIP - test failures still expected.
Will update description when ready