Skip to content

Commit e1a1c7e

Browse files
committed
improve
1 parent daa3599 commit e1a1c7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry-core/src/performance.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ impl Transaction {
717717
op: Some(ctx.op),
718718
..Default::default()
719719
};
720+
let sampled = ctx.sampled.unwrap_or(false);
720721

721722
Self {
722723
inner: Arc::new(Mutex::new(TransactionInner {
723-
sampled: ctx.sampled.unwrap_or(false),
724+
sampled,
724725
context,
725726
transaction: None,
726727
})),

0 commit comments

Comments
 (0)