-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
After adding new metrics to query stats, we had to manually adjust some magic numbers that estimated the queryStats entry size to get query_stats_server_status_metrics.js to pass. We should have a better solution instead of adjusting magic numbers every time - maybe something like having an example query stats result that could be used to calculate the estimated size of the entry, or pulling the query stats estimated size from the logs.
Relevant discussion:
https://github.com/10gen/mongo/pull/45865#discussion_r2665956917