Skip to content

1.1.1

Choose a tag to compare

@benoitc benoitc released this 16 May 21:16
· 7 commits to master since this release
730650f

Fixed

  • observable_counter instruments now render as Prometheus counter with the _total suffix instead of gauge, in both unlabeled and labeled exposition. Previously create_observable_instrument/3 hardcoded gauge-shaped underlying storage and the labeled write path tagged the vec as gauge, so tooling that relies on # TYPE … counter to decide rate-ability (Grafana, rate(), alerting rules) saw the wrong type.
  • instrument_meter:add/3 on a labeled up_down_counter no longer crashes on negative deltas. The labeled write path previously hardcoded counter-shaped vec storage and hit instrument_counter:inc_counter/2's Val >= 0 guard. It now routes through gauge-shaped vec storage with a sign split, so add(Instrument, -1, #{label => ...}) decrements the per-label-set value.

Thanks @velimir for the fix.