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

Add trace event type #147

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Add trace event type #147

merged 1 commit into from
Aug 26, 2021

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Aug 26, 2021

Traces are persisted as Kubernetes events only, usually informing about actions taken during reconciliation that are irrelevant to the alerting system.

The GitOps Toolkit reconcilers should send a single info event when the reconciliation was successful and only if the reconciliation took actions (fetch new revision, change cluster state, push changes to upstream). For no-op reconciliations, the event type should be set to trace to avoid spamming the on-call teams with irrelevant alerts.

Traces are persisted as Kubernetes events only, usually informing about actions taken during reconciliation that are irrelevant to the alerting system.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added the area/runtime Controller runtime related issues and pull requests label Aug 26, 2021
@stefanprodan stefanprodan requested a review from hiddeco August 26, 2021 07:50
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

To make this work properly, the event type should be added to severityToEventType in controller/events.go to ensure the trace severity is mapped back to the right event type.

@stefanprodan
Copy link
Member Author

@hiddeco the default covers it no?

Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Thank you @stefanprodan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runtime Controller runtime related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants