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 93fdea1 commit 2775a4dCopy full SHA for 2775a4d
packages/tracing/src/transaction.ts
@@ -245,7 +245,11 @@ export class Transaction extends SpanClass implements TransactionInterface {
245
const { environment, release } = client.getOptions() || {};
246
const { publicKey: public_key } = client.getDsn() || {};
247
248
- const sample_rate = this.metadata && this.metadata.transactionSampling && this.metadata.transactionSampling.rate;
+ const sample_rate =
249
+ this.metadata &&
250
+ this.metadata.transactionSampling &&
251
+ this.metadata.transactionSampling.rate &&
252
+ this.metadata.transactionSampling.rate.toString();
253
254
const scope = hub.getScope();
255
const { segment: user_segment } = (scope && scope.getUser()) || {};
0 commit comments