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

gcp-observability: update observability logging proto #9608

Merged
merged 3 commits into from Oct 18, 2022

Conversation

DNVindhya
Copy link
Contributor

@DNVindhya DNVindhya commented Oct 10, 2022

This PR includes changes to observability logging data model / proto as per latest logging design review.

Explicit flush is removed to rely on default batching settings provided by Google Cloud Logging Client library.

Ref b/248096772

@DNVindhya
Copy link
Contributor Author

CC @sanjaypujare

@sanjaypujare
Copy link
Contributor

CC @ejona86 since he might be interested in reviewing this as well

.setAuthority(authority)
.setType(eventType)
.setLogger(eventLogger)
.setPayload(pair.payloadBuilder)
Copy link
Contributor

Choose a reason for hiding this comment

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

pair can be null (line 243-245) in which case you will get NPE?

Before fixing the code, you should create a unit test that reproduces the NPE and then fix the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a test to reproduce NPE. Added a null check before setting values of GrpcLogRecord using pair.

Copy link
Contributor

@sanjaypujare sanjaypujare left a comment

Choose a reason for hiding this comment

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

couple of comments need to be addressed

Copy link
Contributor

@sanjaypujare sanjaypujare left a comment

Choose a reason for hiding this comment

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

Approved but have a comment about using new String("...") which will be good to fix

@sanjaypujare sanjaypujare enabled auto-merge (squash) October 18, 2022 05:38
@sanjaypujare sanjaypujare merged commit 4394262 into grpc:master Oct 18, 2022
@DNVindhya DNVindhya deleted the o11y-logging-proto branch October 18, 2022 17:13
sergiitk pushed a commit to sergiitk/grpc-java that referenced this pull request Oct 18, 2022
sergiitk pushed a commit to sergiitk/grpc-java that referenced this pull request Oct 18, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants