SERVER-138199Open

Track CBR sample memory in peakTrackedMemBytes and serverStatus

Each query that runs through the sampling estimator currently holds a sample in memory. Currently, the memory usage of that sample is already computed in [SamplingEstimatorImpl::getSamplingMetadata()|https://github.com/10gen/mongo/blob/2029eca66f86a397d5e7322e84732018705d7838/src/mongo/db/query/compiler/ce/sampling/sampling_estimator_impl.cpp#L603-L607] but this is only exposed in explain: * It is not charged to the operation's memory tracker, so it does not show up in {{peakTrackedMemBytes}}.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
qo-triage-week