-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 3.5.4
-
Component/s: Diagnostics
-
None
-
Fully Compatible
-
Query 2017-04-17
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The ability to filter profiler and log writes by a sample rate was added under SERVER-4786 for MongoDB 3.6. As currently implemented, this filter applies to all profiler levels, including level 2 which historically could be counted on to write a profiler entry for every operation (regardless of slowms setting). We should consider limiting the sample rate to profiler levels 0 and 1 which will bring it inline with how slowms works.