SERVER-97409ClosedFixed

Missing queryHash / planCacheKey on count() queries

Dear support, I ran recently into a problem using an exporter for DB profiler, and noticed that there is no queryHash / planCacheKey produced for count() queries, forcing the exporter to miss such queries in its report. This behaviour can presumably exist for other type of aggregates as well. MongoDB Server version is 7.0.14  An example of such a query plan :  {noformat} [   {     "op": "command",     "ns": "airbnb.listings",     "command": {       "count": "listings",       "query

Affected Versions
Versions known to exhibit this issue
8.1.0-rc05.0.297.0.166.0.208.0.5
Fixed Versions
Versions that include the fix
8.1.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.