Commit 137a00c
committed
(PE-40346) Ensure additional_metrics requests return Array
This commit adds a guard clause to the `retrieve_additional_metrics`
function in `pe_metrics.rb` that ensures the data returned from the
`/metrics` API is of type Array.
Non-conforming data is logged to stderr along with the URL queried
as non-Array responses typically contain error messages that inform
why the request failed.1 parent b2cd0fa commit 137a00c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
83 | 92 | | |
84 | 93 | | |
85 | 94 | | |
| |||
0 commit comments