In some places like application controller file there's a standardization to specify application structured field value without a namespace, while also adding namespace as a separate field + a couple more fields https://github.com/argoproj/argo-cd/blob/5d0a3e6e9abd7e922e72e27c992ed0cdc0824f99/controller/appcontroller.go#L101-L108. However, it's not like that in all files, and some files still log the application field with prepended namespace and /. It'd be great to standardize this across the codebase.
Motivation
Easier and more consistent log analysis experience.
Proposal
Audit places which log or should application field, move the helper function to the common utils and use it in those places.
Summary
In some places like application controller file there's a standardization to specify
application
structured field value without a namespace, while also adding namespace as a separate field + a couple more fields https://github.com/argoproj/argo-cd/blob/5d0a3e6e9abd7e922e72e27c992ed0cdc0824f99/controller/appcontroller.go#L101-L108. However, it's not like that in all files, and some files still log theapplication
field with prepended namespace and /. It'd be great to standardize this across the codebase.Motivation
Easier and more consistent log analysis experience.
Proposal
Audit places which log or should
application
field, move the helper function to the common utils and use it in those places.