shouldSampleTrace method
Uses the configured DatadogRumConfiguration.traceSampleRate to determine if a sample should be traced.
This is used by Datadog tracing plugins like datadog_tracing_http_client
to add the proper headers to network requests.
Implementation
bool shouldSampleTrace() {
return (_sampleRandom.nextDouble() * 100) < traceSampleRate;
}