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

chore: Tune operator logging #3050

Merged
merged 1 commit into from
Mar 1, 2022
Merged

Conversation

christophd
Copy link
Contributor

  • Add ready after seconds metric as a structured log value
  • Set log level to debug when printing trait details in reconcile loop

Release Note

NONE

@christophd
Copy link
Contributor Author

The Apply trait ... info logging bloats the operator logs. We have seen this in dev sandbox performance testing with many integrations being reconciled

- Add ready after seconds metric as a structured log value
- Set log level to debug when printing trait details in reconcile loop
for _, trait := range environment.ExecutedTraits {
traitIds = append(traitIds, string(trait.ID()))
}
c.L.Debugf("Applied traits: %s", strings.Join(traitIds, ","))
Copy link
Member

Choose a reason for hiding this comment

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

I meant to do this for so long that I forgot about it :)

@squakez squakez merged commit 87b06ad into apache:main Mar 1, 2022
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