[ 
https://issues.apache.org/jira/browse/CAMEL-23811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Netherton resolved CAMEL-23811.
-------------------------------------
    Resolution: Fixed

> camel-micrometer: app.info gauge value uses weak reference causing NaN values
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-23811
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23811
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-micrometer
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 4.18.3, 4.21.0
>
>
> Relates to one of the issues reported in this Zulip thread:
> https://camel.zulipchat.com/#narrow/channel/257302-camel-quarkus/topic/Strange.20behavior.20from.20app_info.20metric/with/605650573
> The app.info metric registered by AbstractMicrometerService.registerAppInfo() 
> uses meterRegistry.gaugeCollectionSize() with a new ArrayList<>() that is not 
> stored in any field.
> Micrometer holds a weak reference to the collection, so once the GC collects 
> it, the gauge returns NaN — and eventually the metric disappears entirely.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to