Skip to content

Commit 01bb384

Browse files
committed
simplify sample_rate serialization even more
1 parent c7724bd commit 01bb384

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/tracing/src/transaction.ts

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

248-
const rate = this.metadata && this.metadata.transactionSampling && this.metadata.transactionSampling.rate;
249-
const sample_rate = rate !== undefined ? JSON.stringify(rate) : undefined;
248+
const sample_rate = this.metadata && this.metadata.transactionSampling && this.metadata.transactionSampling.rate;
250249

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

0 commit comments

Comments
 (0)