Skip to content

feat: adding logger of latency_io_reqd if applied in custom.yaml#4342

Closed
Hardikl wants to merge 1 commit into
mainfrom
hl_pl
Closed

feat: adding logger of latency_io_reqd if applied in custom.yaml#4342
Hardikl wants to merge 1 commit into
mainfrom
hl_pl

Conversation

@Hardikl

@Hardikl Hardikl commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Verified locally with Rest:custom.yaml and Zapi:custom.yaml, when found in custom.yaml then It's logging accordingly

time=2026-07-07T16:44:31.130+05:30 level=INFO source=poller.go:841 msg=latency_io_reqd Poller=u2 value=10
time=2026-07-07T16:43:38.800+05:30 level=INFO source=poller.go:841 msg=latency_io_reqd Poller=u2 value=100

Copilot AI review requested due to automatic review settings July 7, 2026 11:24
@cla-bot cla-bot Bot added the cla-signed label Jul 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an informational startup log that reports when latency_io_reqd is present in the merged collector template (e.g., when set via custom.yaml), helping users confirm the setting is being applied at runtime.

Changes:

  • Log latency_io_reqd (and its configured value) during Poller.readObjects after poller parameters are merged into the template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/poller/poller.go
Comment on lines +840 to +842
if template.GetChildContentS("latency_io_reqd") != "" {
logger.Info("latency_io_reqd", slog.Any("value", template.GetChildContentS("latency_io_reqd")))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants