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
$serializer read-only
private
ProtobufSerializer
$serializer
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
ExportMetricsServiceRequestconvertExemplar()
private
convertExemplar(Exemplar $exemplar) : Exemplar
Parameters
- $exemplar : Exemplar
Return values
ExemplarconvertGauge()
private
convertGauge(Gauge $gauge) : Gauge
Parameters
- $gauge : Gauge
Return values
GaugeconvertHistogram()
private
convertHistogram(Histogram $histogram) : Histogram
Parameters
- $histogram : Histogram
Return values
HistogramconvertHistogramDataPoint()
private
convertHistogramDataPoint(HistogramDataPoint $dataPoint) : HistogramDataPoint
Parameters
- $dataPoint : HistogramDataPoint
Return values
HistogramDataPointconvertMetric()
private
convertMetric(Metric $metric) : Metric
Parameters
- $metric : Metric
Return values
MetricconvertNumberDataPoint()
private
convertNumberDataPoint(NumberDataPoint $dataPoint) : NumberDataPoint
Parameters
- $dataPoint : NumberDataPoint
Return values
NumberDataPointconvertResourceMetrics()
private
convertResourceMetrics(ResourceInfo $resource) : ResourceMetrics
Parameters
- $resource : ResourceInfo
Return values
ResourceMetricsconvertScopeMetrics()
private
convertScopeMetrics(InstrumentationScopeInterface $instrumentationScope) : ScopeMetrics
Parameters
- $instrumentationScope : InstrumentationScopeInterface
Return values
ScopeMetricsconvertSum()
private
convertSum(Sum $sum) : Sum
Parameters
- $sum : Sum
Return values
SumconvertTemporality()
private
convertTemporality(mixed $temporality) : int
Parameters
- $temporality : mixed
Return values
intsetAttributes()
private
setAttributes(Resource|NumberDataPoint|HistogramDataPoint|InstrumentationScope $pElement, AttributesInterface $attributes) : void
Parameters
- $pElement : Resource|NumberDataPoint|HistogramDataPoint|InstrumentationScope
- $attributes : AttributesInterface
setFilteredAttributes()
private
setFilteredAttributes(Exemplar $pElement, AttributesInterface $attributes) : void
Parameters
- $pElement : Exemplar
- $attributes : AttributesInterface