-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: refactor error metrics #381
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kleyow
requested review from
mdebarros,
elnyry-sam-k,
oderayi,
vijayg10,
bushjames and
geka-evk
as code owners
January 6, 2025 15:27
Quality Gate failedFailed conditions |
kalinkrustev
approved these changes
Jan 6, 2025
kleyow
added a commit
that referenced
this pull request
Jan 18, 2025
* feat(mojaloop/#3689): fx quotes pov implementation (#326) * chore(snapshot): 15.8.0-snapshot.11 * fix(mojaloop/#3689): fx quotes fixes (#328) * fix(mojaloop/#3689): fx quotes bug fix (#329) * feat: enable sending events directly to Kafka (#332) * feat(mojaloop/#3933): update participant accounts validation (#333) feat(mojaloop/#3933): update participant accounts validation - Added validation for `supportedCurrencies` when present in `POST /quotes` request (payer DFSP must have position account for all supported currencies - Added validation for `payeeReceiveAmount` currency when present (payee DFSP must have position account for the `payeeReceiveAmount` currency) - Fixed error handling to prevent sending double error callbacks - Ensure top-level tracing spans are finished correctly - Updated integration tests harness to support new changes - Added integration tests for the use case - Updated dependencies and resolve audit issues * add check for db on api, fix docker compose * chore(snapshot): 15.8.0-snapshot.17 * disable coverage, fix image scan * chore(snapshot): 15.8.0-snapshot.18 * disable coverage, fix image scan * chore(snapshot): 15.8.0-snapshot.19 * image scan * chore(snapshot): 15.8.0-snapshot.20 * revert * chore(snapshot): 15.8.0-snapshot.21 * feat: allow UUID v7 in the API patterns (#334) * feat(csi-20 & csi-164): parameterize 'switch' id (#339) * fix: quotes participants validation (#340) * fix: quotes validation * chore(snapshot): 15.8.0-snapshot.22 * fix: integration test * chore: await in promise all * fix: lint * chore(snapshot): 15.8.0-snapshot.23 * chore(snapshot): 15.8.0-snapshot.24 * feat(mojaloop/#3991): add support for cross-network proxy routing (#341) feat(mojaloop/#3991): add support for cross-network proxy routing (#341) - Added proxy lib - Added configuration for proxy - Added unit and integration tests for proxy related functionalities * fix: deps * chore(snapshot): 15.8.0-snapshot.32 * feat(csi-334): updated proxyCache lib to use redis cluster (#342) * feat(csi-334): updated proxyCache lib to use redis cluster * chore(snapshot): 15.8.0-snapshot.33 * fix(csi-414): fixed TypeError - Cannot read properties of undefined; updated proxyCache lib; added request logging (#344) * feat(csi-334): updated proxyCache lib; added request logging * fix(csi-414): fixed TypeError - Cannot read properties of undefined (reading 'value') * fix(csi-414): updated deps * chore(snapshot): 15.8.0-snapshot.34 * fix(csi-411): disable validation on proxied request (#346) * disable validation * disable validation * unit tests * int tests * test * remove * update * harden int tests * fix * update int tests for persistant mode * fix unit * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging (#347) * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * fix(csi-498): updated deps * chore(snapshot): 15.8.0-snapshot.35 * chore(snapshot): 15.8.0-snapshot.36 * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * feat(mojaloop/#3885): extend fxquote functionality to persistant mode (#348) * database functions and model logic * upgrade harness * fix tests * db unit test * int tests * lint * fx quote error * lint * addressed comments * comments * feat(mojaloop/#3817): harden fx quotes (#345) * fix(mojaloop/#3817): restore proxied source validation (#349) * chore: renable coverage and improve coverage (#350) * coverage * improve coverage * fix * lint dep * fix(csi-550): add logs to QuotesModel (#351) * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * chore(snapshot): 15.8.0-snapshot.37 * fix(csi-550): added logs to QuotesModel.forwardQuoteRequest() * chore(snapshot): 15.8.0-snapshot.38 * fix(csi-550): improved logs in QuotesModel * chore(snapshot): 15.8.0-snapshot.39 * fix(csi-550): improved logs in QuotesModel for handleQuoteRequest * chore(snapshot): 15.8.0-snapshot.40 * fix: await transaction commit and rollback and avoid unhandledPromise error (#354) * feat: add ULID support (#355) * fix: regex * fix: merge conflict * test: start using mojaloop/build orb (#358) * chore: version * chore(release): [ci skip] 15.9.0-iso.0 * chore: continuous deployment * chore(release): [ci skip] 15.9.0-iso.1 * feat(csi-107): add iso-20022 support (#357) * feat(csi-107): added ISO openApi yaml * feat(csi-107): added ISO openApi yaml * feat(csi-107): added iso openApi yaml; added transformerLib * feat(csi-107): skipped failed validation tests * feat(csi-107): added isIsoApi config; made messageFromRequestDto async * feat(csi-107): added isFxRequest util * feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format * feat(csi-107): added payloadCache * feat(csi-107): added payloadCache * feat(csi-107): added context-field * feat(csi-107): added HapiRawPayload plugin * feat(csi-107): fixed audit:check * feat(csi-107): added QS-iso, added int tests * feat(csi-107): moved context inside content * feat(csi-107): used dataUri to store originalPayload * feat(csi-107): updated transformerLib; stored payload in kafka as object * feat(csi-107): fixed int-tests; ignored some places for test coverage * chore(snapshot): 15.8.0-snapshot.44 * feat(csi-107): updated transformLib * feat(csi-107): added ISO openApi yaml * feat(csi-107): added ISO openApi yaml * feat(csi-107): added iso openApi yaml; added transformerLib * feat(csi-107): skipped failed validation tests * feat(csi-107): added isIsoApi config; made messageFromRequestDto async * feat(csi-107): added isFxRequest util * feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format * feat(csi-107): added payloadCache * feat(csi-107): added payloadCache * feat(csi-107): added context-field * feat(csi-107): added HapiRawPayload plugin * feat(csi-107): fixed audit:check * feat(csi-107): added QS-iso, added int tests * feat(csi-107): moved context inside content * feat(csi-107): used dataUri to store originalPayload * feat(csi-107): updated transformerLib; stored payload in kafka as object * feat(csi-107): fixed int-tests; ignored some places for test coverage * feat(csi-107): updated transformLib * chore(release): [ci skip] 15.9.0-iso.2 * feat(csi-107): added initPayloadCache; added payloadCache to QH (#360) * feat(csi-107): added initPayloadCache; added payloadCache to QH * feat(csi-107): added APY_TYPE support to QH * feat(csi-107): fixed addOriginalPayload logic * feat(csi-107): fixed ISO header for /quotes * feat(csi-107): fixed ISO header for /quotes * chore(release): [ci skip] 15.9.0-iso.3 * chore: continuous deployment * chore(release): [ci skip] 15.9.0-iso.4 * build: test package.json version * build: test package.json version * chore(release): [ci skip] 15.9.0-iso.5 * feat(csi-107): fixed /fxQuotes payload transforming (#362) * feat(csi-107): fixed /fxQuotes payload transforming * feat(csi-107): skipped ISO e2e tests * feat(csi-107): removed some todos * chore(release): [ci skip] 15.9.0-iso.6 * fix(csi-107): fixed QSh iso callback (#364) * chore(release): [ci skip] 15.9.0-iso.7 * feat(csi-107): refactor QSh to avoid using API_TYPE env var (#365) * feat(csi-107): refactor QSh to avoid using API_TYPE env var * feat(csi-107): refactor QSh to avoid using API_TYPE env var * chore(snapshot): 15.9.0-snapshot.0 * feat(csi-107): refactor QSh to avoid using API_TYPE env var * feat(csi-107): fixed ISO GET requests * feat(csi-107): fixed ISO GET requests * chore(release): [ci skip] 15.9.0-iso.8 * feat(csi-107): updated transformLib * chore(release): [ci skip] 15.9.0-iso.9 * feat(csi-107): fixed PUT /fxQuotes/error ISO callback * chore(release): [ci skip] 15.9.0-iso.10 * chore: update iso api spec and dependencies (#366) * chore: update iso api spec and dependencies * chore: coverage...oddly * chore(release): [ci skip] 15.9.0-iso.11 * chore: update deps and api (#367) * chore: update deps * chore: update api * chore(release): [ci skip] 15.9.0-iso.12 * feat: call rules during fx quote (#361) * chore(release): [ci skip] 15.9.0-iso.13 * fix: pass proxyClient to _fetchParticipantInfo in fxQuotesModel * chore: dependencies * test: update expected history length in fxQuotes integration test * chore(release): [ci skip] 15.9.0-iso.14 * chore: forward put error callbacks (#368) * chore(release): [ci skip] 15.9.0-iso.15 * chore: use the central-services-metrics plugin (#369) * chore(release): [ci skip] 15.9.0-iso.16 * chore: update dependencies * chore(release): [ci skip] 15.9.0-iso.17 * chore: update dependencies * chore(release): [ci skip] 15.9.0-iso.18 * feat(csi-927): used common loggingPlugin (#373) * chore(release): [ci skip] 15.9.0-iso.19 * chore: standardize egress audit and un-stringify payload (#375) * chore: standardize egress audit and un-stringify payload * chore: address comments * chore(release): [ci skip] 15.9.0-iso.20 * chore: use the central-services-metrics plugin * chore(release): [ci skip] 15.9.0-iso.21 * feat: add error counters for metrics (#378) * feat: add error counters for metrics * feat: add error counters for metrics * chore: tests * chore: tests * chore: more metrics * chore: add steps * chore: better metrics * chore: coverage * chore(release): [ci skip] 15.9.0-iso.22 * chore: refactor error metrics (#381) * chore: refactor error metrics * chore: refactor error metrics * chore: refactor error metrics * chore: operations * chore: use lib * chore: fix init * chore: dep * chore(release): [ci skip] 15.9.0-iso.23 * chore: minor/iso dependency updates pi26 (#377) * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.0 * chore: update dependencies and create custom operators for json-rules-engine * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.1 * chore: fix hoek vulnerability fixed by removing unused good-console and good-squeeze which are deprecated as of 2020 * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.2 * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.3 * chore: sync versions in package json and lock * chore: sync versions in package json and lock * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.5 --------- Co-authored-by: mojaloopci <info@mojaloop.io> * fix: monorepo (#382) * chore: copilot suggestions * chore: todos * chore(release): [ci skip] 16.1.0-iso.0 * chore: comments * chore(release): [ci skip] 16.1.0-iso.1 --------- Co-authored-by: Steven Oderayi <oderayi@gmail.com> Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com> Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com> Co-authored-by: Eugen Klymniuk <keramet.kh@gmail.com> Co-authored-by: geka.evk <geka.evk@gmail.com> Co-authored-by: mojaloopci <info@mojaloop.io> Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
kleyow
added a commit
that referenced
this pull request
Jan 21, 2025
* feat(mojaloop/#3689): fx quotes pov implementation (#326) * chore(snapshot): 15.8.0-snapshot.11 * fix(mojaloop/#3689): fx quotes fixes (#328) * fix(mojaloop/#3689): fx quotes bug fix (#329) * feat: enable sending events directly to Kafka (#332) * feat(mojaloop/#3933): update participant accounts validation (#333) feat(mojaloop/#3933): update participant accounts validation - Added validation for `supportedCurrencies` when present in `POST /quotes` request (payer DFSP must have position account for all supported currencies - Added validation for `payeeReceiveAmount` currency when present (payee DFSP must have position account for the `payeeReceiveAmount` currency) - Fixed error handling to prevent sending double error callbacks - Ensure top-level tracing spans are finished correctly - Updated integration tests harness to support new changes - Added integration tests for the use case - Updated dependencies and resolve audit issues * add check for db on api, fix docker compose * chore(snapshot): 15.8.0-snapshot.17 * disable coverage, fix image scan * chore(snapshot): 15.8.0-snapshot.18 * disable coverage, fix image scan * chore(snapshot): 15.8.0-snapshot.19 * image scan * chore(snapshot): 15.8.0-snapshot.20 * revert * chore(snapshot): 15.8.0-snapshot.21 * feat: allow UUID v7 in the API patterns (#334) * feat(csi-20 & csi-164): parameterize 'switch' id (#339) * fix: quotes participants validation (#340) * fix: quotes validation * chore(snapshot): 15.8.0-snapshot.22 * fix: integration test * chore: await in promise all * fix: lint * chore(snapshot): 15.8.0-snapshot.23 * chore(snapshot): 15.8.0-snapshot.24 * feat(mojaloop/#3991): add support for cross-network proxy routing (#341) feat(mojaloop/#3991): add support for cross-network proxy routing (#341) - Added proxy lib - Added configuration for proxy - Added unit and integration tests for proxy related functionalities * fix: deps * chore(snapshot): 15.8.0-snapshot.32 * feat(csi-334): updated proxyCache lib to use redis cluster (#342) * feat(csi-334): updated proxyCache lib to use redis cluster * chore(snapshot): 15.8.0-snapshot.33 * fix(csi-414): fixed TypeError - Cannot read properties of undefined; updated proxyCache lib; added request logging (#344) * feat(csi-334): updated proxyCache lib; added request logging * fix(csi-414): fixed TypeError - Cannot read properties of undefined (reading 'value') * fix(csi-414): updated deps * chore(snapshot): 15.8.0-snapshot.34 * fix(csi-411): disable validation on proxied request (#346) * disable validation * disable validation * unit tests * int tests * test * remove * update * harden int tests * fix * update int tests for persistant mode * fix unit * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging (#347) * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * fix(csi-498): updated deps * chore(snapshot): 15.8.0-snapshot.35 * chore(snapshot): 15.8.0-snapshot.36 * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * fix(csi-498): generated accept/contentType headers based on requested resource; improved logging * feat(mojaloop/#3885): extend fxquote functionality to persistant mode (#348) * database functions and model logic * upgrade harness * fix tests * db unit test * int tests * lint * fx quote error * lint * addressed comments * comments * feat(mojaloop/#3817): harden fx quotes (#345) * fix(mojaloop/#3817): restore proxied source validation (#349) * chore: renable coverage and improve coverage (#350) * coverage * improve coverage * fix * lint dep * fix(csi-550): add logs to QuotesModel (#351) * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * fix(csi-550): add logs to QuotesModel * chore(snapshot): 15.8.0-snapshot.37 * fix(csi-550): added logs to QuotesModel.forwardQuoteRequest() * chore(snapshot): 15.8.0-snapshot.38 * fix(csi-550): improved logs in QuotesModel * chore(snapshot): 15.8.0-snapshot.39 * fix(csi-550): improved logs in QuotesModel for handleQuoteRequest * chore(snapshot): 15.8.0-snapshot.40 * fix: await transaction commit and rollback and avoid unhandledPromise error (#354) * feat: add ULID support (#355) * fix: regex * fix: merge conflict * test: start using mojaloop/build orb (#358) * chore: version * chore(release): [ci skip] 15.9.0-iso.0 * chore: continuous deployment * chore(release): [ci skip] 15.9.0-iso.1 * feat(csi-107): add iso-20022 support (#357) * feat(csi-107): added ISO openApi yaml * feat(csi-107): added ISO openApi yaml * feat(csi-107): added iso openApi yaml; added transformerLib * feat(csi-107): skipped failed validation tests * feat(csi-107): added isIsoApi config; made messageFromRequestDto async * feat(csi-107): added isFxRequest util * feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format * feat(csi-107): added payloadCache * feat(csi-107): added payloadCache * feat(csi-107): added context-field * feat(csi-107): added HapiRawPayload plugin * feat(csi-107): fixed audit:check * feat(csi-107): added QS-iso, added int tests * feat(csi-107): moved context inside content * feat(csi-107): used dataUri to store originalPayload * feat(csi-107): updated transformerLib; stored payload in kafka as object * feat(csi-107): fixed int-tests; ignored some places for test coverage * chore(snapshot): 15.8.0-snapshot.44 * feat(csi-107): updated transformLib * feat(csi-107): added ISO openApi yaml * feat(csi-107): added ISO openApi yaml * feat(csi-107): added iso openApi yaml; added transformerLib * feat(csi-107): skipped failed validation tests * feat(csi-107): added isIsoApi config; made messageFromRequestDto async * feat(csi-107): added isFxRequest util * feat(csi-107): added PAYLOAD_STORAGES; update messageFromRequestDto input format * feat(csi-107): added payloadCache * feat(csi-107): added payloadCache * feat(csi-107): added context-field * feat(csi-107): added HapiRawPayload plugin * feat(csi-107): fixed audit:check * feat(csi-107): added QS-iso, added int tests * feat(csi-107): moved context inside content * feat(csi-107): used dataUri to store originalPayload * feat(csi-107): updated transformerLib; stored payload in kafka as object * feat(csi-107): fixed int-tests; ignored some places for test coverage * feat(csi-107): updated transformLib * chore(release): [ci skip] 15.9.0-iso.2 * feat(csi-107): added initPayloadCache; added payloadCache to QH (#360) * feat(csi-107): added initPayloadCache; added payloadCache to QH * feat(csi-107): added APY_TYPE support to QH * feat(csi-107): fixed addOriginalPayload logic * feat(csi-107): fixed ISO header for /quotes * feat(csi-107): fixed ISO header for /quotes * chore(release): [ci skip] 15.9.0-iso.3 * chore: continuous deployment * chore(release): [ci skip] 15.9.0-iso.4 * build: test package.json version * build: test package.json version * chore(release): [ci skip] 15.9.0-iso.5 * feat(csi-107): fixed /fxQuotes payload transforming (#362) * feat(csi-107): fixed /fxQuotes payload transforming * feat(csi-107): skipped ISO e2e tests * feat(csi-107): removed some todos * chore(release): [ci skip] 15.9.0-iso.6 * fix(csi-107): fixed QSh iso callback (#364) * chore(release): [ci skip] 15.9.0-iso.7 * feat(csi-107): refactor QSh to avoid using API_TYPE env var (#365) * feat(csi-107): refactor QSh to avoid using API_TYPE env var * feat(csi-107): refactor QSh to avoid using API_TYPE env var * chore(snapshot): 15.9.0-snapshot.0 * feat(csi-107): refactor QSh to avoid using API_TYPE env var * feat(csi-107): fixed ISO GET requests * feat(csi-107): fixed ISO GET requests * chore(release): [ci skip] 15.9.0-iso.8 * feat(csi-107): updated transformLib * chore(release): [ci skip] 15.9.0-iso.9 * feat(csi-107): fixed PUT /fxQuotes/error ISO callback * chore(release): [ci skip] 15.9.0-iso.10 * chore: update iso api spec and dependencies (#366) * chore: update iso api spec and dependencies * chore: coverage...oddly * chore(release): [ci skip] 15.9.0-iso.11 * chore: update deps and api (#367) * chore: update deps * chore: update api * chore(release): [ci skip] 15.9.0-iso.12 * feat: call rules during fx quote (#361) * chore(release): [ci skip] 15.9.0-iso.13 * fix: pass proxyClient to _fetchParticipantInfo in fxQuotesModel * chore: dependencies * test: update expected history length in fxQuotes integration test * chore(release): [ci skip] 15.9.0-iso.14 * chore: forward put error callbacks (#368) * chore(release): [ci skip] 15.9.0-iso.15 * chore: use the central-services-metrics plugin (#369) * chore(release): [ci skip] 15.9.0-iso.16 * chore: update dependencies * chore(release): [ci skip] 15.9.0-iso.17 * chore: update dependencies * chore(release): [ci skip] 15.9.0-iso.18 * feat(csi-927): used common loggingPlugin (#373) * chore(release): [ci skip] 15.9.0-iso.19 * chore: standardize egress audit and un-stringify payload (#375) * chore: standardize egress audit and un-stringify payload * chore: address comments * chore(release): [ci skip] 15.9.0-iso.20 * chore: use the central-services-metrics plugin * chore(release): [ci skip] 15.9.0-iso.21 * feat: add error counters for metrics (#378) * feat: add error counters for metrics * feat: add error counters for metrics * chore: tests * chore: tests * chore: more metrics * chore: add steps * chore: better metrics * chore: coverage * chore(release): [ci skip] 15.9.0-iso.22 * chore: refactor error metrics (#381) * chore: refactor error metrics * chore: refactor error metrics * chore: refactor error metrics * chore: operations * chore: use lib * chore: fix init * chore: dep * chore(release): [ci skip] 15.9.0-iso.23 * chore: minor/iso dependency updates pi26 (#377) * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.0 * chore: update dependencies and create custom operators for json-rules-engine * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.1 * chore: fix hoek vulnerability fixed by removing unused good-console and good-squeeze which are deprecated as of 2020 * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.2 * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.3 * chore: sync versions in package json and lock * chore: sync versions in package json and lock * chore(release): [ci skip] 15.9.0-iso-depdency-updates-pi26.5 --------- Co-authored-by: mojaloopci <info@mojaloop.io> * fix: monorepo (#382) * chore: copilot suggestions * chore: todos * chore(release): [ci skip] 16.1.0-iso.0 * chore: licensing --------- Co-authored-by: Steven Oderayi <oderayi@gmail.com> Co-authored-by: Kalin Krustev <kalin.krustev@gmail.com> Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com> Co-authored-by: Eugen Klymniuk <keramet.kh@gmail.com> Co-authored-by: geka.evk <geka.evk@gmail.com> Co-authored-by: mojaloopci <info@mojaloop.io> Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.