Skip to content

Commit dd66615

Browse files
committed
toString
1 parent 01bb384 commit dd66615

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tracing/src/transaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ export class Transaction extends SpanClass implements TransactionInterface {
245245
const { environment, release } = client.getOptions() || {};
246246
const { publicKey: public_key } = client.getDsn() || {};
247247

248-
const sample_rate = this.metadata && this.metadata.transactionSampling && this.metadata.transactionSampling.rate;
248+
const sample_rate =
249+
this.metadata &&
250+
this.metadata.transactionSampling &&
251+
this.metadata.transactionSampling.rate &&
252+
this.metadata.transactionSampling.rate.toString();
249253

250254
const scope = hub.getScope();
251255
const { segment: user_segment } = (scope && scope.getUser()) || {};

0 commit comments

Comments
 (0)