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

Add resource information to logger of GKE, GCE and AWS EC2 #180

Merged
merged 8 commits into from
Feb 5, 2019

Conversation

gaplyk
Copy link
Contributor

@gaplyk gaplyk commented Feb 5, 2019

This will allow to log to Stackdriver with environment specific information, like instance_id, namespace, etc. for GKE

@coveralls
Copy link

coveralls commented Feb 5, 2019

Coverage Status

Coverage increased (+0.7%) to 46.329% when pulling 79aaaad on gaplyk:sd-logging into 30c33e4 on NYTimes:master.

server/kit/sd_log.go Outdated Show resolved Hide resolved
server/kit/log.go Show resolved Hide resolved
server/kit/sd_log.go Outdated Show resolved Hide resolved
server/kit/log.go Outdated Show resolved Hide resolved
@gaplyk
Copy link
Contributor Author

gaplyk commented Feb 5, 2019

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.
Copy link
Contributor

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.

server/kit/log.go Outdated Show resolved Hide resolved
server/kit/log.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jprobinson jprobinson left a comment

Choose a reason for hiding this comment

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

🌯 !!!

@jprobinson jprobinson merged commit a140a3d into nytimes:master Feb 5, 2019
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.

4 participants