As a Hub Operator I want to integrate Event Framework into Mojaloop components so that so that all events (errors, general, etc) can be audited and traced appropriately for Prepare and Fulfil flows
Tasks:
[x] Event Framework
[x] Enhance central services shared
[x] Create a Hapi plugin with onPreAuth and onPreResponse to create a span per api request
[ ] ~Add to the README and jsdoc a description of the 'sampled' route tag for span creation~
[ ] ~Integrate into health end-points for Event Sidecar (if sidecar is enabled)~ defer to #834
[x] Test events being Recorded into EFK
[ ] ~Logs (replace existing logs)~
[x] Add Audits for beginning of receiving request for Notifications
[x] Add Errors for both Internal (e.g. technical errors - unable to get end-points from Central-Ledger, unable to send callback due to network) and External (e.g. callback resulted in an error from DFSP)
[x] Traces for main span for Notifications
[x] Helm [ @mdebarros ]
[x] Integrate event-sidecar into helm chart
[x] Updated configuration for default.json in helm chart
[x] Integration Testing (with ML-API-Adapter via side-car)
[x] Test Log events (info, debug, error, etc) on EFK
[x] Test Audit events on EFK
[x] Test Trace events on APM
Acceptance Criteria:
[x] Designs are up-to-date
[x] Unit Tests pass
[x] Changes made to config (default.json) are broadcast to team and follow-up tasks added to update helm charts and other deployment configs.
[x] Event Framework integrated into ML-API-Adapter for Prepare and Fulfil flows
[ ] Ensure that components cannot operate without Sidecar functioning correctly when enabled
[ ] Ensure that components will not startup without Sidecar when enabled
[ ] Sidecar can be disabled for local development and/or debugging purposes only
[x] Helm Charts
[x] Deployment includes sidecar as part of deployment
Goal:
As a
Hub Operator
I want tointegrate Event Framework into Mojaloop components
so thatso that all events (errors, general, etc) can be audited and traced appropriately for Prepare and Fulfil flows
Tasks:
Acceptance Criteria:
Pull Requests:
Follow-up:
Dependencies:
Accountability: