Skip to content

Commit 3fc0e46

Browse files
committed
Improve spec
1 parent 0e8572e commit 3fc0e46

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

sentry-ruby/spec/sentry_spec.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,9 @@
457457

458458
expect(transaction.sampled).to eq(false)
459459

460-
transaction = Sentry.continue_trace(
461-
{
462-
"sentry-trace" => not_sampled_trace,
463-
"baggage" => "sentry-sample_rand=0.4"
464-
},
465-
op: "rack.request",
466-
name: "/payment"
460+
transaction = described_class.start_transaction(
461+
op: "rack.request", name: "/payment", sample_rand: 0.4
467462
)
468-
described_class.start_transaction(transaction: transaction)
469463

470464
expect(transaction.sampled).to eq(true)
471465
end

0 commit comments

Comments
 (0)