We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70883aa commit 04dffa3Copy full SHA for 04dffa3
packages/tracing/src/hubextensions.ts
@@ -55,7 +55,10 @@ function sample<T extends Transaction>(
55
// if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that
56
if (transaction.sampled !== undefined) {
57
transaction.setMetadata({
58
- transactionSampling: { method: 'explicitly_set' },
+ transactionSampling: {
59
+ method: 'explicitly_set',
60
+ rate: Number(transaction.sampled),
61
+ },
62
});
63
return transaction;
64
}
0 commit comments