Add metrics to monitor errors and duration for ETH RPC requests (#507)

* Add metrics to monitor errors and duration for ETH RPC requests

* Check for server error

* Add a metric with configured upstream ETH RPC endpoints

* Use Gauge for RPC requests duration metric

* Filter out unknown events while loading event count on start

* Update package versions

* Rethrow errors in overridden send provider method
This commit is contained in:
prathamesh0
2024-05-15 19:11:22 +05:30
committed by GitHub
parent c9696c3d9f
commit c7e6baa263
18 changed files with 109 additions and 45 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@cerc-io/codegen",
"version": "0.2.86",
"version": "0.2.87",
"description": "Code generator",
"private": true,
"main": "index.js",
@@ -20,7 +20,7 @@
},
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@cerc-io/util": "^0.2.86",
"@cerc-io/util": "^0.2.87",
"@graphql-tools/load-files": "^6.5.2",
"@npmcli/package-json": "^5.0.0",
"@poanet/solidity-flattener": "https://github.com/vulcanize/solidity-flattener.git",
@@ -41,12 +41,12 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "^0.2.86",
"@cerc-io/ipld-eth-client": "^0.2.86",
"@cerc-io/solidity-mapper": "^0.2.86",
"@cerc-io/util": "^0.2.86",
"@cerc-io/cli": "^0.2.87",
"@cerc-io/ipld-eth-client": "^0.2.87",
"@cerc-io/solidity-mapper": "^0.2.87",
"@cerc-io/util": "^0.2.87",
{{#if (subgraphPath)}}
"@cerc-io/graph-node": "^0.2.86",
"@cerc-io/graph-node": "^0.2.87",
{{/if}}
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",