- 
    Type:
Task
 - 
    Resolution: Fixed
 - 
    Affects Version/s: None
 - 
    Component/s: None
 - 
    None
 
- 
        Query Integration
 - 
        Fully Compatible
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
Collect statistics for distinct commands on mongod. This feature should be feature flag guarded
The distinct command lives at distinct.cpp.
query_stats.cpp will be useful for all the query stats related functions like registerRequest(), writeQueryStats().
For standalone, we care about collectQueryStatsOnMongod.
find_cmd.cpp would be a good example to see where registerRequest() is called, and take a look at writeQueryStatsOnCursorDisposeOrKill() in clientcursor.cpp to see how the stats are collected.
- depends on
 - 
                    
SERVER-90648 Implement query stats store key for distinct
- Closed
 
 
- is depended on by
 - 
                    
SERVER-90651 Support collecting data-bearing node metrics for distinct
- Closed
 
 - 
                    
SERVER-92198 Collect query stats for distinct on a view
-         
 - Closed
 
 -         
 
- is fixed by
 - 
                    
SERVER-92342 queryStats for distinct on standalone is not recording docsReturned and exec time stats
-         
 - Closed
 
 -         
 
- related to
 - 
                    
SERVER-110347 Collect query stats for update in standalone
-         
 - Closed
 
 -