|
27 | 27 | end
|
28 | 28 | let(:span) do
|
29 | 29 | Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
30 |
| - span_processor, nil, nil, Time.now, nil) |
| 30 | + span_processor, nil, nil, Time.now, nil, nil) |
31 | 31 | end
|
32 | 32 |
|
33 | 33 | describe '#attributes' do
|
|
261 | 261 | it 'calls the span processor #on_finish callback' do
|
262 | 262 | mock_span_processor.expect(:on_start, nil) { |_| true }
|
263 | 263 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
264 |
| - mock_span_processor, nil, nil, Time.now, nil) |
| 264 | + mock_span_processor, nil, nil, Time.now, nil, nil) |
265 | 265 | mock_span_processor.expect(:on_finish, nil, [span])
|
266 | 266 | span.finish
|
267 | 267 | mock_span_processor.verify
|
|
290 | 290 | yielded_span = nil
|
291 | 291 | mock_span_processor.expect(:on_start, nil) { |s| yielded_span = s }
|
292 | 292 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
293 |
| - mock_span_processor, nil, nil, Time.now, nil) |
| 293 | + mock_span_processor, nil, nil, Time.now, nil, nil) |
294 | 294 | _(yielded_span).must_equal(span)
|
295 | 295 | mock_span_processor.verify
|
296 | 296 | end
|
297 | 297 |
|
298 | 298 | it 'trims excess attributes' do
|
299 | 299 | attributes = { 'foo': 'bar', 'other': 'attr' }
|
300 | 300 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
301 |
| - span_processor, attributes, nil, Time.now, nil) |
| 301 | + span_processor, attributes, nil, Time.now, nil, nil) |
302 | 302 | _(span.to_span_data.total_recorded_attributes).must_equal(2)
|
303 | 303 | _(span.attributes.length).must_equal(1)
|
304 | 304 | end
|
305 | 305 |
|
306 | 306 | it 'counts attributes' do
|
307 | 307 | attributes = { 'foo': 'bar', 'other': 'attr' }
|
308 | 308 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
309 |
| - span_processor, attributes, nil, Time.now, nil) |
| 309 | + span_processor, attributes, nil, Time.now, nil, nil) |
310 | 310 | _(span.to_span_data.total_recorded_attributes).must_equal(2)
|
311 | 311 | end
|
312 | 312 |
|
313 | 313 | it 'counts links' do
|
314 | 314 | links = [OpenTelemetry::Trace::Link.new(context), OpenTelemetry::Trace::Link.new(context)]
|
315 | 315 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
316 |
| - span_processor, nil, links, Time.now, nil) |
| 316 | + span_processor, nil, links, Time.now, nil, nil) |
317 | 317 | _(span.to_span_data.total_recorded_links).must_equal(2)
|
318 | 318 | end
|
319 | 319 |
|
320 | 320 | it 'trims excess links' do
|
321 | 321 | links = [OpenTelemetry::Trace::Link.new(context), OpenTelemetry::Trace::Link.new(context)]
|
322 | 322 | span = Span.new(context, 'name', SpanKind::INTERNAL, nil, trace_config,
|
323 |
| - span_processor, nil, links, Time.now, nil) |
| 323 | + span_processor, nil, links, Time.now, nil, nil) |
324 | 324 | _(span.links.size).must_equal(1)
|
325 | 325 | end
|
326 | 326 | end
|
|
0 commit comments