Skip to content

Commit

Permalink
Update processor/metricstransformprocessor/metrics_transform_processo…
Browse files Browse the repository at this point in the history
…r_otlp.go

Co-authored-by: Evan Bradley <[email protected]>
  • Loading branch information
odubajDT and evan-bradley committed Jul 18, 2024
1 parent fe9b1f4 commit e9a6f45
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e9a6f45

Please sign in to comment.