Skip to content

Commit f6363e6

Browse files
committed
ref(tracing): Only send user_id if sendDefaultPii is true
1 parent e2fca9c commit f6363e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tracing/src/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
237237
environment,
238238
release,
239239
transaction: this.name,
240-
user_id,
240+
...(hub.shouldSendDefaultPii() && { user_id }),
241241
user_segment,
242242
public_key,
243243
trace_id: this.traceId,

0 commit comments

Comments
 (0)