Skip to content

Unified logging of resource identifiers so that we can reliably get entire history of a resource in stack driver. - #616

Merged
markmandel merged 2 commits into
agones-dev:masterfrom
jkowalski:gs-logging
Feb 25, 2019
Merged

markmandel merged 2 commits into
agones-dev:masterfrom
jkowalski:gs-logging

Conversation

@jkowalski

Copy link
Copy Markdown
Contributor

Well-known identifiers of resources types are defined in new logfields package.

@agones-bot

Copy link
Copy Markdown
Collaborator

Build Failed 😱

Build Id: 4a8eab40-a840-4ab3-a542-1269c28a4af3

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot

Copy link
Copy Markdown
Collaborator

Build Succeeded 👏

Build Id: 8e14a0a7-b085-48c8-93f9-2d87f41d453e

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/616/head:pr_616 && git checkout pr_616
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-4d4c46c

@markmandel markmandel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall - awesome. Had a few questions, and a couple of small cleanup items.

Comment thread pkg/gameserverallocations/controller.go Outdated
err := json.Unmarshal(obj.Raw, gsa)
if err != nil {
c.logger.WithError(err).Error("error unmarchaslling json")
c.baseLogger.WithError(err).Error("error unmarchalling json")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
c.baseLogger.WithError(err).Error("error unmarchalling json")
c.baseLogger.WithError(err).Error("error unmarshalling json")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread pkg/gameservers/health.go Outdated
"strings"

"agones.dev/agones/pkg/util/logfields"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: delete line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread pkg/gameserversets/controller.go Outdated
}

func loggerForGameServerSetKey(base *logrus.Entry, key string) *logrus.Entry {
return base.WithField(gameServerSetKeyFieldName, key)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this not use logfields.GameServerSetKey ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread pkg/sdkserver/sdkserver.go Outdated
"time"

"agones.dev/agones/pkg/util/logfields"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: empty line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread pkg/util/workerqueue/workerqueue.go
Comment thread pkg/fleetautoscalers/controller.go
Comment thread pkg/gameservers/controller.go
@markmandel markmandel added the kind/cleanup Refactoring code, fixing up documentation, etc label Feb 22, 2019
…n entire history of a resource in stack driver.

Well-known identifiers of resources types are defined in logfields package.
@agones-bot

Copy link
Copy Markdown
Collaborator

Build Succeeded 👏

Build Id: 21b80715-7cab-4184-8cb7-272f68fcc057

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/616/head:pr_616 && git checkout pr_616
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-0cff425

@agones-bot

Copy link
Copy Markdown
Collaborator

Build Succeeded 👏

Build Id: 544d6b8c-3ce8-4c0f-a7cb-5b71caa9b9dd

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/616/head:pr_616 && git checkout pr_616
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-31fa9d2

@markmandel markmandel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🔔

@agones-bot

Copy link
Copy Markdown
Collaborator

Build Succeeded 👏

Build Id: a9b24bc3-f9f9-41c4-9115-1adc2fcdf298

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/616/head:pr_616 && git checkout pr_616
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-b4b6f4b

@markmandel
markmandel merged commit cb073a9 into agones-dev:master Feb 25, 2019
@markmandel markmandel added this to the 0.9.0 milestone Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Refactoring code, fixing up documentation, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants