feat: batch-submitter peripheral resources#1576
feat: batch-submitter peripheral resources#1576tynes merged 3 commits intoethereum-optimism:developfrom
Conversation
Creates a custom SentryStremHandler that functions analgously to a log.StreamHandler, with the exception that any LvlError logs or higher are posted to Sentry. It also leverages the existing go-ethereum logging formatters, specifically JSONFormat, to post any additional log context items as a JSON blob via extra data.
Adds logic to parse private key strings from a string (for debug purposes) or from a valid BIP39 mnemonic and valid BIP32 derivation path. Additionally adds a ParseAddress helper to ensure proper parsing and sanitization of contract addresses.
|
ed93228 to
c6ccc9e
Compare
Adds the main BatchSubmitter service struct that will provide resources to the (yet to be implemented) TxBatchSubmitter and StateBatchSubmitter sub-services. This root service also sets up Sentry logging and the embedded Prometheus metrics server.
Codecov Report
@@ Coverage Diff @@
## develop #1576 +/- ##
========================================
Coverage 76.71% 76.71%
========================================
Files 82 82
Lines 3032 3032
Branches 463 463
========================================
Hits 2326 2326
Misses 706 706
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
### Description Implements the `opp2p_disconnectPeer` rpc request. Closes #1576
### Description Implements the `opp2p_disconnectPeer` rpc request. Closes #1576
Description
This PR adds the primary resources that will be used by the batch submitter service(s). This includes:
For Sentry Logging, the current approach creates a custom
log.Handlerthat mimics the defaultlog.StreamHandler. Internally, this writes toos.Stdout, and then writes anything greater than or equal tolog.LvlErrorto Sentry. With this approach, we are also able to capture additional logging context by serializing thelog.Recordusing geth'sJSONFormat, and including the JSON blob as extra data to Sentry.Specific prometheus metrics will be added as the sub-services are built.
Metadata