-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Datadog
-
Tags:
-
Sprint:nxplatform #99
-
Story Points:1
In Nuxeo, we use gauge, counter and timer metrics, the Nuxeo Datadog reporter is also trying to handle histogram but fails if the "sum" expansion is enable:
java.lang.ArrayIndexOutOfBoundsException: Index 10 out of bounds for length 10
at org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.reportHistogram(NuxeoDatadogReporter.java:205) ~[nuxeo-runtime-metrics-2021.43.7.jar:?]
at org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.report(NuxeoDatadogReporter.java:130) ~[nuxeo-runtime-metrics-2021.43.7.jar:?]
at io.dropwizard.metrics5.ScheduledReporter.report(ScheduledReporter.java:237) ~[metrics-core-5.0.0-rc3.jar:5.0.0-rc3]
This is because the expansion list is taken from the timer metric that includes a "sum" property which is not part of the histogram.
When this is happening other metrics are not anymore reported.