BatchSpanProcessorTest
extends MockeryTestCase
in package
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\Trace\SpanProcessor\BatchSpanProcessor::class
Table of Contents
Properties
- $logWriter : LogWriterInterface|MockObject
- $testClock : TestClock
Methods
- scheduledDelayProvider() : array<string|int, mixed>
- test_export_after_shutdown() : void
- test_export_batch_size_met() : void
- test_export_delay_limit_not_reached_partially_filled_batch() : void
- test_export_delay_limit_reached_partially_filled_batch() : void
- test_export_includes_force_flush_on_shutdown() : void
- test_export_only_sampled_spans() : void
- test_export_scheduled_delay() : void
- test_force_flush_applies_only_to_current_spans() : void
- test_force_flush_ended_spans() : void
- test_get_builder() : void
- test_queue_size_exceeded_drops_spans() : void
- test_self_diagnostics() : void
- test_shutdown_shutdowns_exporter() : void
- test_span_processor_throws_on_invalid_export_timeout() : void
- test_span_processor_throws_on_invalid_max_export_batch_size() : void
- test_span_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size() : void
- test_span_processor_throws_on_invalid_max_queue_size() : void
- test_span_processor_throws_on_invalid_scheduled_delay() : void
- test_throwing_exporter_export() : void
- test_throwing_exporter_flush() : void
- test_throwing_exporter_flush_cannot_rethrow_in_original_caller_logs_error() : void
- test_throwing_exporter_flush_rethrows_in_original_caller() : void
- setUp() : void
- createNonSampledSpanMock() : mixed
- createSampledSpanMock() : mixed
Properties
$logWriter
private
LogWriterInterface|MockObject
$logWriter
$testClock
private
TestClock
$testClock
Methods
scheduledDelayProvider()
public
static scheduledDelayProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>test_export_after_shutdown()
public
test_export_after_shutdown() : void
test_export_batch_size_met()
public
test_export_batch_size_met() : void
test_export_delay_limit_not_reached_partially_filled_batch()
public
test_export_delay_limit_not_reached_partially_filled_batch() : void
test_export_delay_limit_reached_partially_filled_batch()
public
test_export_delay_limit_reached_partially_filled_batch() : void
test_export_includes_force_flush_on_shutdown()
public
test_export_includes_force_flush_on_shutdown() : void
Tags
test_export_only_sampled_spans()
public
test_export_only_sampled_spans() : void
test_export_scheduled_delay()
public
test_export_scheduled_delay(int $exportDelay, int $advanceByNano, bool $expectedFlush) : void
Parameters
- $exportDelay : int
- $advanceByNano : int
- $expectedFlush : bool
Attributes
- #[DataProvider]
- 'scheduledDelayProvider'
test_force_flush_applies_only_to_current_spans()
public
test_force_flush_applies_only_to_current_spans() : void
test_force_flush_ended_spans()
public
test_force_flush_ended_spans() : void
Tags
test_get_builder()
public
test_get_builder() : void
test_queue_size_exceeded_drops_spans()
public
test_queue_size_exceeded_drops_spans() : void
Tags
test_self_diagnostics()
public
test_self_diagnostics() : void
test_shutdown_shutdowns_exporter()
public
test_shutdown_shutdowns_exporter() : void
test_span_processor_throws_on_invalid_export_timeout()
public
test_span_processor_throws_on_invalid_export_timeout() : void
test_span_processor_throws_on_invalid_max_export_batch_size()
public
test_span_processor_throws_on_invalid_max_export_batch_size() : void
test_span_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size()
public
test_span_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size() : void
test_span_processor_throws_on_invalid_max_queue_size()
public
test_span_processor_throws_on_invalid_max_queue_size() : void
test_span_processor_throws_on_invalid_scheduled_delay()
public
test_span_processor_throws_on_invalid_scheduled_delay() : void
test_throwing_exporter_export()
public
test_throwing_exporter_export() : void
test_throwing_exporter_flush()
public
test_throwing_exporter_flush() : void
test_throwing_exporter_flush_cannot_rethrow_in_original_caller_logs_error()
public
test_throwing_exporter_flush_cannot_rethrow_in_original_caller_logs_error() : void
test_throwing_exporter_flush_rethrows_in_original_caller()
public
test_throwing_exporter_flush_rethrows_in_original_caller() : void
setUp()
protected
setUp() : void
createNonSampledSpanMock()
private
createNonSampledSpanMock() : mixed
createSampledSpanMock()
private
createSampledSpanMock() : mixed