1.1.2
Fixed
-
A registry restart no longer silently drops previously-created OTel instruments.
instrument_registry:init/1recreated the ETS tables empty and reset theinstrument_metricsindex to[], but left the per-namepersistent_termentries behind. The surviving{otel_instrument, Name}madeinstrument_meter:get_instrument/1return a stale record, socreate_counter/create_up_down_counter/create_histogramshort-circuited and never re-registered the underlying metric, while the index stayed empty. The metric vanished fromcollect_all/0and the Prometheus export even thoughadd/recordkept succeeding.init/1now erases the staleotel_instrument,otel_instruments,instrument_metric,instrument_label, andinstrument_label_overflowentries, soget_instrument/1returnsundefinedafter a restart and the metric self-heals on the nextcreate_*.unregister_allclears the same set (it previously missedotel_instrument/otel_instruments).