-
Notifications
You must be signed in to change notification settings - Fork 223
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
Add resource information to logger of GKE, GCE and AWS EC2 #180
Conversation
Yeah, lets default to stdout if nothing provided |
// NewLogger will inspect the environment and, if running in the Google App Engine, | ||
// Google Kubernetes Engine, Google Compute Engine or AWS EC2 environment, | ||
// it will return a new Stackdriver logger annotated with the current | ||
// server's project ID, service ID and version and other environment specific values. |
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.
Sorry, lil grammar nitpick. Let's replace the first and
with a comma.
server's project ID, service ID, version and other environment specific values.
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.
🌯 !!!
This will allow to log to Stackdriver with environment specific information, like instance_id, namespace, etc. for GKE