Skip to content

Commit 33c9338

Browse files
committed
CS
1 parent 51655ba commit 33c9338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Tracing/PropagationContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class PropagationContext
3333
*/
3434
private $dynamicSamplingContext;
3535

36-
/**
36+
/**
3737
* @var float|null
3838
*/
3939
private $sampleRand;

src/Tracing/TransactionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private static function parseTraceAndBaggage(string $sentryTrace, string $baggag
208208
$context->getMetadata()->setSampleRand(round(mt_rand(0, mt_getrandmax() - 1) / mt_getrandmax() * $samplingContext->get('sample-rate'), 6));
209209
} else {
210210
// [rate, 1]
211-
$context->getMetadata()->setSampleRand(round(mt_rand(0, mt_getrandmax() - 1) / mt_getrandmax() * (1 - $samplingContext->get('sample-rate')) + $samplingContext->get('sample-rate'), 6));
211+
$context->getMetadata()->setSampleRand(round(mt_rand(0, mt_getrandmax() - 1) / mt_getrandmax() * (1 - $samplingContext->get('sample-rate')) + $samplingContext->get('sample-rate'), 6));
212212
}
213213
} elseif ($context->parentSampled !== null) {
214214
// [0, 1)

0 commit comments

Comments
 (0)