in processor/elasticinframetricsprocessor/processor.go [132:148]
func isRemappedMetric(metric pmetric.Metric) bool {
switch metric.Type() {
case pmetric.MetricTypeGauge:
for _, dp := range metric.Gauge().DataPoints().All() {
if attr, ok := dp.Attributes().Get(OTelRemappedLabel); ok && attr.Bool() {
return true
}
}
case pmetric.MetricTypeSum:
for _, dp := range metric.Sum().DataPoints().All() {
if attr, ok := dp.Attributes().Get(OTelRemappedLabel); ok && attr.Bool() {
return true
}
}
}
return false
}