OpenTelemetry PHP

BatchLogRecordProcessorTest extends MockeryTestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Logs\Processor\BatchLogRecordProcessor::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_scheduled_delay()  : void
test_force_flush()  : void
test_force_flush_applies_only_to_current_logs()  : void
test_logs_processor_throws_on_invalid_export_timeout()  : void
test_logs_processor_throws_on_invalid_max_export_batch_size()  : void
test_logs_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size()  : void
test_logs_processor_throws_on_invalid_max_queue_size()  : void
test_logs_processor_throws_on_invalid_scheduled_delay()  : void
test_queue_size_exceeded_drops_spans()  : void
test_self_diagnostics()  : void
test_shutdown_shutdowns_exporter()  : 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

Properties

Methods

scheduledDelayProvider()

public static scheduledDelayProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

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_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_logs_processor_throws_on_invalid_export_timeout()

public test_logs_processor_throws_on_invalid_export_timeout() : void

test_logs_processor_throws_on_invalid_max_export_batch_size()

public test_logs_processor_throws_on_invalid_max_export_batch_size() : void

test_logs_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size()

public test_logs_processor_throws_on_invalid_max_export_batch_size_exceeding_max_queue_size() : void

test_logs_processor_throws_on_invalid_max_queue_size()

public test_logs_processor_throws_on_invalid_max_queue_size() : void

test_logs_processor_throws_on_invalid_scheduled_delay()

public test_logs_processor_throws_on_invalid_scheduled_delay() : void

test_queue_size_exceeded_drops_spans()

public test_queue_size_exceeded_drops_spans() : void
Tags
psalm-suppress

UndefinedVariable

psalm-suppress

RedundantCondition

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

        
On this page

Search results