OpenTelemetry PHP

MeterTest extends TestCase
in package

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

Table of Contents

Methods

test_create_counter()  : void
test_create_gauge()  : void
test_create_histogram()  : void
test_create_histogram_advisory()  : void
test_create_observable_counter()  : void
test_create_observable_gauge()  : void
test_create_observable_up_down_counter()  : void
test_create_up_down_counter()  : void
test_releases_observer_on_stale()  : void
test_releases_writer_on_stale()  : void
test_reuses_observer_when_not_stale()  : void
test_reuses_writer_when_not_stale()  : void
test_uses_default_aggregation_if_view_aggregation_null()  : void
test_uses_default_view_if_null_views_returned()  : void
test_uses_view_registry_to_create_views()  : void
createMeterProviderForMetricFactory()  : MeterProvider

Methods

test_create_counter()

public test_create_counter() : void

test_create_gauge()

public test_create_gauge() : void

test_create_histogram()

public test_create_histogram() : void

test_create_histogram_advisory()

public test_create_histogram_advisory() : void

test_create_observable_counter()

public test_create_observable_counter() : void

test_create_observable_gauge()

public test_create_observable_gauge() : void

test_create_observable_up_down_counter()

public test_create_observable_up_down_counter() : void

test_create_up_down_counter()

public test_create_up_down_counter() : void

test_releases_observer_on_stale()

public test_releases_observer_on_stale() : void

test_releases_writer_on_stale()

public test_releases_writer_on_stale() : void

test_reuses_observer_when_not_stale()

public test_reuses_observer_when_not_stale() : void
Tags
noinspection

PhpUnusedLocalVariableInspection

test_reuses_writer_when_not_stale()

public test_reuses_writer_when_not_stale() : void
Tags
noinspection

PhpUnusedLocalVariableInspection

test_uses_default_aggregation_if_view_aggregation_null()

public test_uses_default_aggregation_if_view_aggregation_null() : void
Tags
psalm-suppress

InvalidOperand

psalm-suppress

PossiblyUndefinedArrayOffset

test_uses_default_view_if_null_views_returned()

public test_uses_default_view_if_null_views_returned() : void
Tags
psalm-suppress

InvalidOperand

psalm-suppress

PossiblyUndefinedArrayOffset

test_uses_view_registry_to_create_views()

public test_uses_view_registry_to_create_views() : void
Tags
psalm-suppress

InvalidOperand

psalm-suppress

PossiblyUndefinedArrayOffset

createMeterProviderForMetricFactory()

private createMeterProviderForMetricFactory(MetricFactoryInterface $metricFactory[, ViewRegistryInterface|null $viewRegistry = null ][, iterable<string|int, MetricReaderInterface|MetricSourceRegistryInterface|DefaultAggregationProviderInterface$metricReaders = [] ]) : MeterProvider
Parameters
$metricFactory : MetricFactoryInterface
$viewRegistry : ViewRegistryInterface|null = null
$metricReaders : iterable<string|int, MetricReaderInterface|MetricSourceRegistryInterface|DefaultAggregationProviderInterface> = []
Return values
MeterProvider

        
On this page

Search results