Additional metrics#4690
Conversation
|
| // Record the metric | ||
| m.RecordHTTPRequest(method, statusCode, retry, requestType, assetPair, providerStatusCode) | ||
| m.RecordHTTPRequest(method, statusCode, retry, requestType, isCacheWarming, feedID, providerStatusCode) | ||
| m.RecordHTTPRequestDuration(time.Since(start).Seconds()) |
There was a problem hiding this comment.
Seconds sounds a bit coarse. How about millis?
There was a problem hiding this comment.
This is to make this metric backward compatible
https://github.com/smartcontractkit/external-adapters-js/blob/main/packages/core/bootstrap/src/lib/metrics/index.ts
Closes #DS 1455
Description
New metrics:
cache_data_get_count, andhttp_request_duration_secondshttp_requests_totalis now backward compatible......
Changes
Steps to Test
Quality Assurance
infra-k8sconfiguration file.adapter-secretsconfiguration file.test-payload.jsonfile with relevant requests.feature/x,chore/x,release/x,hotfix/x,fix/x) or is created from Jira.