|
60 | 60 |
|
61 | 61 | it 'delegates sampling of remote sampled spans' do
|
62 | 62 | mock_sampler = Minitest::Mock.new
|
63 |
| - mock_sampler.expect(:should_sample?, result, [{ trace_id: trace_id, parent_context: remote_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil }]) |
| 63 | + mock_sampler.expect(:should_sample?, result, [], trace_id: trace_id, parent_context: remote_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil) |
64 | 64 | sampler = Samplers.parent_based(
|
65 | 65 | root: not_a_sampler,
|
66 | 66 | remote_parent_sampled: mock_sampler,
|
|
76 | 76 |
|
77 | 77 | it 'delegates sampling of remote not sampled spans' do
|
78 | 78 | mock_sampler = Minitest::Mock.new
|
79 |
| - mock_sampler.expect(:should_sample?, result, [{ trace_id: trace_id, parent_context: remote_not_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil }]) |
| 79 | + mock_sampler.expect(:should_sample?, result, [], trace_id: trace_id, parent_context: remote_not_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil) |
80 | 80 | sampler = Samplers.parent_based(
|
81 | 81 | root: not_a_sampler,
|
82 | 82 | remote_parent_sampled: not_a_sampler,
|
|
92 | 92 |
|
93 | 93 | it 'delegates sampling of local sampled spans' do
|
94 | 94 | mock_sampler = Minitest::Mock.new
|
95 |
| - mock_sampler.expect(:should_sample?, result, [{ trace_id: trace_id, parent_context: local_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil }]) |
| 95 | + mock_sampler.expect(:should_sample?, result, [], trace_id: trace_id, parent_context: local_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil) |
96 | 96 | sampler = Samplers.parent_based(
|
97 | 97 | root: not_a_sampler,
|
98 | 98 | remote_parent_sampled: not_a_sampler,
|
|
108 | 108 |
|
109 | 109 | it 'delegates sampling of local not sampled spans' do
|
110 | 110 | mock_sampler = Minitest::Mock.new
|
111 |
| - mock_sampler.expect(:should_sample?, result, [{ trace_id: trace_id, parent_context: local_not_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil }]) |
| 111 | + mock_sampler.expect(:should_sample?, result, [], trace_id: trace_id, parent_context: local_not_sampled_parent_context, links: nil, name: nil, kind: nil, attributes: nil) |
112 | 112 | sampler = Samplers.parent_based(
|
113 | 113 | root: not_a_sampler,
|
114 | 114 | remote_parent_sampled: not_a_sampler,
|
|
124 | 124 |
|
125 | 125 | it 'delegates sampling of root spans' do
|
126 | 126 | mock_sampler = Minitest::Mock.new
|
127 |
| - mock_sampler.expect(:should_sample?, result, [{ trace_id: trace_id, parent_context: nil, links: nil, name: nil, kind: nil, attributes: nil }]) |
| 127 | + mock_sampler.expect(:should_sample?, result, [], trace_id: trace_id, parent_context: nil, links: nil, name: nil, kind: nil, attributes: nil) |
128 | 128 | sampler = Samplers.parent_based(
|
129 | 129 | root: mock_sampler,
|
130 | 130 | remote_parent_sampled: not_a_sampler,
|
|
0 commit comments