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 1014
1014
end
1015
1015
1016
1016
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
1021
1019
env = {
1022
1020
"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 } "
1024
1022
}
1025
1023
1026
1024
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 )
1028
1026
end
1029
1027
end
1030
1028
end
You can’t perform that action at this time.
0 commit comments