Unified logging of resource identifiers so that we can reliably get entire history of a resource in stack driver.#616
Conversation
|
Build Failed 😱 Build Id: 4a8eab40-a840-4ab3-a542-1269c28a4af3 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
c447e54 to
4d4c46c
Compare
|
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:
|
markmandel
left a comment
There was a problem hiding this comment.
Overall - awesome. Had a few questions, and a couple of small cleanup items.
| 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") |
There was a problem hiding this comment.
| c.baseLogger.WithError(err).Error("error unmarchalling json") | |
| c.baseLogger.WithError(err).Error("error unmarshalling json") |
pkg/gameservers/health.go
Outdated
| "strings" | ||
|
|
||
| "agones.dev/agones/pkg/util/logfields" | ||
|
|
pkg/gameserversets/controller.go
Outdated
| } | ||
|
|
||
| func loggerForGameServerSetKey(base *logrus.Entry, key string) *logrus.Entry { | ||
| return base.WithField(gameServerSetKeyFieldName, key) |
There was a problem hiding this comment.
Should this not use logfields.GameServerSetKey ?
pkg/sdkserver/sdkserver.go
Outdated
| "time" | ||
|
|
||
| "agones.dev/agones/pkg/util/logfields" | ||
|
|
4d4c46c to
0cff425
Compare
…n entire history of a resource in stack driver. Well-known identifiers of resources types are defined in logfields package.
0cff425 to
31fa9d2
Compare
|
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:
|
|
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:
|
|
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:
|
Well-known identifiers of resources types are defined in new
logfieldspackage.