From e9a6f45da240538d30ef6820eba5c8a394be9408 Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:52:45 +0200 Subject: [PATCH] Update processor/metricstransformprocessor/metrics_transform_processor_otlp.go Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> --- .../metrics_transform_processor_otlp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go index 01bf75865cbf..ad2e3b42c6e8 100644 --- a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go +++ b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go @@ -554,13 +554,13 @@ func transformMetric(metric pmetric.Metric, transform internalTransform) bool { updateLabelOp(metric, op, transform.MetricIncludeFilter) case aggregateLabels: if canChangeMetric { - ops := []string{} + attrs := []string{} for k, v := range op.labelSetMap { if v { - ops = append(ops, k) + attrs = append(attrs, k) } } - aggregateLabelsOp(metric, ops, op.configOperation.AggregationType) + aggregateLabelsOp(metric, attrs, op.configOperation.AggregationType) } case aggregateLabelValues: if canChangeMetric {