SERVER-137029Investigating

Minimize the cost of trace sampling decisions

h2. Goal Make the decision "should this request be traced?" cheap: free when nothing can be sampled, and near-free at the default sampling rate, where nearly every request is still rejected. The scope doc's target is under 2% CPU at the default level. h2. Changes h3. 1. Fast sampling roll (land first) Every sampleable root span draws a roll with \{{PseudoRandom::nextCanonicalDouble()}}, i.e. libstdc++'s \{{std::generate_canonical}}, which computes in \{{long double}} with two \{{logl}} c

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

No labels assigned.