File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 10141014 end
10151015
10161016 context "with different sample_rand values" do
1017- it "correctly propagates various sample_rand values" do
1018- test_values = [ 0.000001 , 0.123456 , 0.500000 , 0.999999 ]
1019-
1020- test_values . each do |sample_rand_value |
1017+ [ 0.000001 , 0.123456 , 0.500000 , 0.999999 ] . each do |sample_rand |
1018+ it "correctly propagates sentry-sample_rand=#{ sample_rand } " do
10211019 env = {
10221020 "HTTP_SENTRY_TRACE" => "771a43a4192642f0b136d5159a501700-7c51afd529da4a2a-1" ,
1023- "HTTP_BAGGAGE" => "sentry-trace_id=771a43a4192642f0b136d5159a501700,sentry-sample_rand=#{ sample_rand_value } "
1021+ "HTTP_BAGGAGE" => "sentry-trace_id=771a43a4192642f0b136d5159a501700,sentry-sample_rand=#{ sample_rand } "
10241022 }
10251023
10261024 transaction = described_class . continue_trace ( env , name : "test" )
1027- expect ( transaction . sample_rand ) . to eq ( sample_rand_value )
1025+ expect ( transaction . sample_rand ) . to eq ( sample_rand )
10281026 end
10291027 end
10301028 end
You can’t perform that action at this time.
0 commit comments