Skip to content

Commit

Permalink
sort by label keys
Browse files Browse the repository at this point in the history
  • Loading branch information
soundofspace committed Feb 22, 2024
1 parent 2b9dcfc commit 364f704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _translate_to_prometheus(
label_keys = []
label_values = []

for key, value in number_data_point.attributes.items():
for key, value in sorted(number_data_point.attributes.items()):
label_keys.append(self._sanitize(key))
label_values.append(self._check_value(value))

Expand Down

0 comments on commit 364f704

Please sign in to comment.