OpenTelemetry PHP

MeterTest extends TestCase
in package

FinalYes
Attributes
#[CoversClass]
\OpenTelemetry\SDK\Metrics\Meter::class

Table of Contents

Methods

test_batch_observe_calls_callback_only_once()  : void
test_batch_observe_detach_detaches_callback()  : void
test_batch_observe_detach_with_repeated_instrument_does_not_trigger_undefined_offset_warning()  : void
test_batch_observe_invalid_instrument()  : void
test_batch_observe_invalid_instrument_different_meter()  : void
test_batch_observe_observes_all_provided_instruments()  : void
test_batch_observe_weakens_callback()  : void
sumMetricsToMap()  : array<string, float|int>

Methods

test_batch_observe_calls_callback_only_once()

public test_batch_observe_calls_callback_only_once() : void

test_batch_observe_detach_detaches_callback()

public test_batch_observe_detach_detaches_callback() : void

test_batch_observe_detach_with_repeated_instrument_does_not_trigger_undefined_offset_warning()

public test_batch_observe_detach_with_repeated_instrument_does_not_trigger_undefined_offset_warning() : void
Attributes
#[CoversNothing]

test_batch_observe_invalid_instrument()

public test_batch_observe_invalid_instrument() : void

test_batch_observe_invalid_instrument_different_meter()

public test_batch_observe_invalid_instrument_different_meter() : void

test_batch_observe_observes_all_provided_instruments()

public test_batch_observe_observes_all_provided_instruments() : void

test_batch_observe_weakens_callback()

public test_batch_observe_weakens_callback() : void

sumMetricsToMap()

private sumMetricsToMap(array<string|int, mixed> $metrics) : array<string, float|int>
Parameters
$metrics : array<string|int, mixed>
Return values
array<string, float|int>

        
On this page

Search results