Skip to content

Commit

Permalink
news: add entry for axoflow#365
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
  • Loading branch information
alltilla committed Nov 15, 2024
1 parent 6f26205 commit caadec4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions news/fx-feature-365.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
`metric_labels()`: Added a new dict-like type to store metric labels directly.

This dict converts the key-values to metric labels on the spot,
so when it is used in multiple `update_metric()` function calls,
no re-rendering takes place, which greatly improves performance.

The stored labels are sorted alphabetically.

Be aware, that this is a list of key-value pairs, meaning key collisions
are not detected. Use the `dedup_metrics_labels()` function to deduplicate
labels. However, this takes CPU time, so if possible, make sure not to
insert a key multiple times so `dedup_metrics_labels()` can be omitted.

0 comments on commit caadec4

Please sign in to comment.