@@ -165,9 +165,18 @@ on the following data:
165165
166166- Database names
167167
168- ``$queryStats`` **does not** apply the hash function to MQL keywords
169- such as operator names (for example, ``$gte``), or parameter names (such
170- as the ``partitionBy`` parameter in :pipeline:`$setWindowFields`).
168+ ``$queryStats`` **does not** apply the HMAC transformation to the
169+ following data:
170+
171+ - MQL keywords such as operator names (for example, ``$gte``).
172+
173+ - Parameter names such as the ``partitionBy`` parameter in
174+ :pipeline:`$setWindowFields`.
175+
176+ - Field values. ``$queryStats`` normalizes field values in a query to
177+ their data types (such as number or string) when the query is
178+ recorded. ``$queryStats`` never stores field values that contain user
179+ data.
171180
172181For an example of transformed output, see
173182:ref:`queryStats-example-transformed`.
@@ -923,7 +932,8 @@ MongoDB Atlas Data Collection
923932
924933MongoDB Atlas periodically uses ``$queryStats`` to collect anonymized
925934data about your queries, which helps improve MongoDB products. Your data
926- may also be used to make feature suggestions based on usage.
935+ may also be used to make feature suggestions based on usage. MongoDB
936+ retains the data it collects with ``$queryStats`` for four years.
927937
928938When Atlas runs ``$queryStats`` on your deployment, it uses a unique
929939HMAC key per Atlas organization to transform your data and avoid
0 commit comments