Skip to content

Conversation

@AGMETEOR
Copy link
Contributor

No description provided.

@AGMETEOR AGMETEOR self-assigned this Dec 11, 2025
Copilot AI review requested due to automatic review settings December 11, 2025 11:49
@AGMETEOR AGMETEOR merged commit e21c1df into main Dec 11, 2025
3 checks passed
@AGMETEOR AGMETEOR deleted the fix-logging branch December 11, 2025 11:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors logging calls in the OpenTelemetry integration to use a more consistent approach: changing from printf-style formatting to variadic argument passing, and updating error logging to use exception wrapping with E.Cause.

  • Changed error logging from printf-style format strings to error wrapping with E.Cause
  • Refactored debug logging statements from printf-style formatting (%v) to variadic argument passing

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

}
if opts.FrontendProvider != "" {
log.Debug("Will report frontend provider %v in dc %v", opts.FrontendProvider, opts.FrontendDC)
log.Debug("Will report frontend provider in dc ", opts.FrontendProvider, opts.FrontendDC)
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

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

The log message has incorrect formatting with double spaces between "provider" and "in". The message should read "Will report frontend provider in dc" with the variables appended. This will result in an unclear log message like "Will report frontend provider in dc value1 value2" instead of a properly formatted message.

Suggested change
log.Debug("Will report frontend provider in dc ", opts.FrontendProvider, opts.FrontendDC)
log.Debug("Will report frontend provider in dc ", opts.FrontendProvider, opts.FrontendDC)

Copilot uses AI. Check for mistakes.
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.

2 participants