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

grpc-js-xds: Log loaded bootstrap info in xDS client (1.4.x) #1908

Merged

Conversation

murgatroid99
Copy link
Member

We need this to correlate client logs with TD logs. (PR for 1.4.x)

@murgatroid99 murgatroid99 changed the title grpc-js-xds: Log loaded bootstrap info in xDS client grpc-js-xds: Log loaded bootstrap info in xDS client (1.4.x) Sep 20, 2021
@@ -340,6 +340,7 @@ export class XdsClient {
if (this.hasShutdown) {
return;
}
trace('Loaded bootstrap info: ' + JSON.stringify(bootstrapInfo, undefined, 2));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to print the final bootstrap with the build_version, user_agent_name, server_features fields?

Copy link
Member Author

Choose a reason for hiding this comment

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

In this code that's not really treated as the "final bootstrap", but I can log the final Node messages that will be sent in the ADS and LRS requests.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added logging for those too.

Copy link
Contributor

@lidizheng lidizheng left a comment

Choose a reason for hiding this comment

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

Thanks for adding this log.

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.

None yet

2 participants