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 source label to callback duration metric #178

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

kramvan1
Copy link
Contributor

@kramvan1 kramvan1 commented Jun 18, 2024

Will allow views into crawler vs watcher initiated callbacks.

Add rules count to engine logging.

Add rules count to engine logging
@kramvan1 kramvan1 self-assigned this Jun 18, 2024
@kramvan1 kramvan1 changed the title Add soure label to callback duration metric Add source label to callback duration metric Jun 18, 2024
Copy link
Contributor

@brandondr96 brandondr96 left a comment

Choose a reason for hiding this comment

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

Is there any place to set the source as crawler?

@@ -70,7 +70,7 @@ func (w *watcher) singleRun() {
time.Sleep(delay) // TODO ideally a context should be used for fast shutdown, e.g. select { case <-ctx.Done(); case <-time.After(delay) }
}
w.logger.Debug("Calling process key", zap.String("key", key))
w.kp.processKey(key, value, w.api, w.logger, map[string]string{}, incRuleProcessedCount)
w.kp.processKey(key, value, w.api, w.logger, map[string]string{"source": "watcher"}, incRuleProcessedCount)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kramvan1 kramvan1 merged commit a0d2e61 into master Jun 18, 2024
3 checks passed
@kramvan1 kramvan1 deleted the add-callback-source branch June 18, 2024 19:06
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.

3 participants