-
Notifications
You must be signed in to change notification settings - Fork 71
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
Send client logs with the cloud logging library #474
Conversation
/gcbrun |
4 similar comments
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
5 similar comments
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
launcher/spec/launch_spec.go
Outdated
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 High test
strconv.ParseUint
/gcbrun |
4 similar comments
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
2 similar comments
/gcbrun |
/gcbrun |
/gcbrun |
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.Logger
type tologging.Logger
inagent.CreateAttestationAgent()
,agent.fetchContainerimageSignatures()
,ContainerRunner.logger
,runner.NewRunner()
,spec.GetLaunchSpec()
,spec.fetchExperiments()
, andteeserver.New()