This is a follow-up PR to #3629 which created a utility function to test if promMetrics are available, allowing assets to be backward compatible with teraslice before promMetrics were introduced (< 1.4.0). At the same time we decided to just make isPromAvailable() checks everywhere promMetrics was used, instead of using a proxy to catch calls to undefined functions. See #3625 for more details.
This PR makes the following changes:
Removes the promMetricsAPI Proxy from terafoundation
Add checks using isPromAvailable before all calls to promMetricsAPI functions.
This is a follow-up PR to #3629 which created a utility function to test if promMetrics are available, allowing assets to be backward compatible with teraslice before promMetrics were introduced (< 1.4.0). At the same time we decided to just make
isPromAvailable()
checks everywhere promMetrics was used, instead of using a proxy to catch calls to undefined functions. See #3625 for more details.This PR makes the following changes:
promMetricsAPI
Proxy fromterafoundation
isPromAvailable
before all calls topromMetricsAPI
functions.promMetrics docs
.