firefly-tokens-erc20-erc721
firefly-tokens-erc20-erc721 copied to clipboard
Add REST call and event batch size metrics
This PR adds a variety of metrics and will close https://github.com/hyperledger/firefly-tokens-erc20-erc721/issues/89 when its complete.
The approach I've used is to add to the existing log interceptor and use that as a point to capture inbound API metrics. The renamed logging-and-metrics interceptor exposes methods to set/inc/observe other metrics e.g. relating to blockchain calls and event processing.
A few more details of the approach I've used are in the issue.
@awrichar This has been open for a long time with lots of questions and lots of answers. What's the verdict? Are more changes requested, or are these changes approved and should be merged?
@awrichar Could you have another pass at this PR and assess if any more changes needed?