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

agent/executor: Log core.Action*s as zap.Object for api.Resources formatting #558

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

sharnoff
Copy link
Member

tl;dr the JSON formatting is fixed because it's also the over-the-wire format, but the logs are easier to parse (and make dashboards out of) if api.Resources values have CPU as floats rather than with the 'm' suffix (e.g. '0.25' instead of '250m').

Part of #550, specifically this issue:

Resource change logging uses m suffix for CPU instead of decimal, e.g. 250m not 0.25 (harder to parse logs)

…matting

tl;dr the JSON formatting is fixed because it's also the over-the-wire
format, but the logs are easier to parse (and make dashboards out of) if
api.Resources values have CPU as floats rather than with the 'm' suffix
(e.g. '0.25' instead of '250m').
@sharnoff sharnoff merged commit 4ccf58e into main Oct 11, 2023
7 checks passed
@sharnoff sharnoff deleted the sharnoff/agent-executor-actions-zap.Object branch October 11, 2023 20:30
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.

1 participant