OpenTelemetry PHP

TemporalityPreference
in package
implements AggregationTemporalitySelectorInterface

FinalYes

Chooses aggregation temporality by instrument kind, as for `OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE`.

Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.62.0/specification/metrics/sdk_exporters/otlp.md#additional-environment-variable-configuration

Table of Contents

Interfaces

AggregationTemporalitySelectorInterface

Properties

$deltaInstrumentTypes  : array<string|int, mixed>

Methods

cumulative()  : self
delta()  : self
fromName()  : self
Accepts the environment variable values (`lowmemory`) and the declarative config ones (`low_memory`), in any case.
lowMemory()  : self
temporality()  : string|Temporality|null
Returns the temporality to use for the given metric.
__construct()  : mixed

Properties

Methods

fromName()

Accepts the environment variable values (`lowmemory`) and the declarative config ones (`low_memory`), in any case.

public static fromName(string $name) : self
Parameters
$name : string
Return values
self
On this page

Search results