OpenTelemetry PHP

MetricConverter
in package

FinalYes

Table of Contents

Properties

$serializer  : ProtobufSerializer

Methods

__construct()  : mixed
convert()  : ExportMetricsServiceRequest
convertExemplar()  : Exemplar
convertGauge()  : Gauge
convertHistogram()  : Histogram
convertHistogramDataPoint()  : HistogramDataPoint
convertMetric()  : Metric
convertNumberDataPoint()  : NumberDataPoint
convertResourceMetrics()  : ResourceMetrics
convertScopeMetrics()  : ScopeMetrics
convertSum()  : Sum
convertTemporality()  : int
setAttributes()  : void
setFilteredAttributes()  : void

Properties

Methods

__construct()

public __construct([ProtobufSerializer|null $serializer = null ]) : mixed
Parameters
$serializer : ProtobufSerializer|null = null

convert()

public convert(iterable<string|int, Metric> $batch) : ExportMetricsServiceRequest
Parameters
$batch : iterable<string|int, Metric>
Return values
ExportMetricsServiceRequest

convertExemplar()

private convertExemplar(Exemplar $exemplar) : Exemplar
Parameters
$exemplar : Exemplar
Tags
psalm-suppress

PossiblyFalseArgument

Return values
Exemplar

convertTemporality()

private convertTemporality(mixed $temporality) : int
Parameters
$temporality : mixed
Return values
int

setAttributes()

private setAttributes(Resource|NumberDataPoint|HistogramDataPoint|InstrumentationScope $pElement, AttributesInterface $attributes) : void
Parameters
$pElement : Resource|NumberDataPoint|HistogramDataPoint|InstrumentationScope
$attributes : AttributesInterface
On this page

Search results