Skip to content

Commit 0e0304c

Browse files
tydhotdashpole
authored andcommitted
fix bug issue#3118 and issue#3161 (open-telemetry#3310)
1 parent 8a3cf2b commit 0e0304c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/prometheusexporter/accumulator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func timeseriesSignature(ilmName string, metric pdata.Metric, labels pdata.Strin
376376
b.WriteString(metric.DataType().String())
377377
b.WriteString("*" + ilmName)
378378
b.WriteString("*" + metric.Name())
379-
labels.Range(func(k string, v string) bool {
379+
labels.Sort().Range(func(k string, v string) bool {
380380
b.WriteString("*" + k + "*" + v)
381381
return true
382382
})

0 commit comments

Comments
 (0)