-
Notifications
You must be signed in to change notification settings - Fork 128
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-13373 Different QAN max query length for MongoDB. #3273
base: v3
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v3 #3273 +/- ##
=======================================
Coverage 43.41% 43.41%
=======================================
Files 360 360
Lines 43979 43981 +2
=======================================
+ Hits 19093 19095 +2
Misses 23224 23224
Partials 1662 1662
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
9c1b7fa
to
331415c
Compare
agent/utils/truncate/query.go
Outdated
// MongoQuery truncate query to specific length of chars, if needed. -1: No limit, 0: Default (4096). | ||
// Also truncate all invalid UTF-8 chars. | ||
func MongoQuery(q string, maxQueryLength int32) (string, bool) { |
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.
do we really need it to be a separate function instead of 3rd parameter?
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.
No we dont, but for me it looked more clear. Also it has less affected files. Changed back to one func with 3 params.
PMM-13373
Link to the Feature Build: Percona-Lab/pmm-submodules#3751