-
Notifications
You must be signed in to change notification settings - Fork 450
PMM-7 logrus to slog #1062
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
PMM-7 logrus to slog #1062
Conversation
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.62.0 to 0.63.0. - [Release notes](https://github.com/prometheus/common/releases) - [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md) - [Commits](prometheus/common@v0.62.0...v0.63.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
….0' into PMM-7-logrus-to-slog
|
please address linter issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 46 out of 46 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
exporter/indexstats_collector.go:72
- [nitpick] For consistency and to preserve error context, consider passing the error value directly (i.e. 'err') rather than using err.Error() in the key/value pairs.
logger.Error("cannot auto discover databases and collections", "error", err.Error())
exporter/currentop_collector.go:105
- [nitpick] Instead of using fmt.Sprintf to format the error message, consider using structured logging to include the type information (e.g., logger.Error("Invalid type assertion for inprog", "actualType", fmt.Sprintf("%T", r["inprog"]))) for improved clarity.
logger.Error(fmt.Sprintf("Invalid type primitive.A assertion for 'inprog': %T", r["inprog"]))
Below we provide a basic checklist of things that would make it a good PR:
Once all checks pass and the code is ready for review, please add
pmm-review-exportersteam as the reviewer. That would assign people from the review team automatically. Report any issues on our Forum.