-
Notifications
You must be signed in to change notification settings - Fork 85
Send client logs with the cloud logging library #474
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
Conversation
|
/gcbrun |
4 similar comments
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
5 similar comments
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
| if err != nil { | ||
| return fmt.Errorf("failed to convert %v into uint64, got: %v", devShmSizeKey, val) | ||
| } | ||
| s.DevShmSize = int64(size) |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types
|
/gcbrun |
4 similar comments
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
2 similar comments
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
jkl73
left a comment
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.
Mostly nits, feel free to submit
|
/gcbrun |
Replaces our existing logging (with the "log" package) with a custom logging library that wraps (1) the Cloud Logging library (for logging to Cloud Logs) and (2) slog (for logging to the serial console). Using the Cloud Logging library allows for structured payloads and properly displayed severity (ex. ERROR logs) in the logging UI.
Note this does NOT include logging redirection from the workload - that is still sent via
StdOut(in the case of Cloud Logging).Examples
Cloud Logs


Serial Logs

Breaking Changes
*log.Loggertype tologging.Loggerinagent.CreateAttestationAgent(),agent.fetchContainerimageSignatures(),ContainerRunner.logger,runner.NewRunner(),spec.GetLaunchSpec(),spec.fetchExperiments(), andteeserver.New()