Skip to content

Commit c9c2d71

Browse files
authored
fix: upgrade snapshot-metrics (#248)
1 parent 2665ff8 commit c9c2d71

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@ethersproject/address": "^5.7.0",
3232
"@ethersproject/wallet": "^5.7.0",
3333
"@sendgrid/mail": "^7.7.0",
34-
"@snapshot-labs/snapshot-metrics": "^1.1.0",
34+
"@snapshot-labs/snapshot-metrics": "^1.3.0",
3535
"@snapshot-labs/snapshot-sentry": "^1.4.0",
3636
"bluebird": "^3.7.2",
3737
"bull": "^4.10.4",

src/helpers/metrics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export default function initMetrics(app: Express) {
1717
/^\/(preview|send)\/.*$/,
1818
/^\/(webhook|subscriber|subscriptionsList)$/
1919
],
20-
errorHandler: capture
20+
errorHandler: capture,
21+
db
2122
});
2223
}
2324

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,12 +1284,13 @@
12841284
resolved "https://registry.yarnpkg.com/@snapshot-labs/prettier-config/-/prettier-config-0.1.0-beta.7.tgz#c8e07e7e9baabee245020a72ac05835b65139823"
12851285
integrity sha512-k/FUf4VWhwLFUmKuWs2mNvmPe691hqhvCJuujD4TfbIivWysmL1TqthwfdQUrQEAQUqVQ2ZKEiGkbufp5J27eQ==
12861286

1287-
"@snapshot-labs/snapshot-metrics@^1.1.0":
1288-
version "1.1.0"
1289-
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot-metrics/-/snapshot-metrics-1.1.0.tgz#0b700ed50a28400cae7bfa47de9f5a1cc018719a"
1290-
integrity sha512-KajdSDd7cjQ9pRRYLDMqSd6yTcQ7Ln2/1zrRY5w23vGTSAH/NF0/7XojPYiW+IIdVAa5fV5nrcjFXT1X62XSYA==
1287+
"@snapshot-labs/snapshot-metrics@^1.3.0":
1288+
version "1.3.0"
1289+
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot-metrics/-/snapshot-metrics-1.3.0.tgz#bd6be102cc051204f24f7977faac379eb2b8be9d"
1290+
integrity sha512-QK3iG29LbP2aiDIB2p6/f+Ll33DYXJLIbJTycR9kxYzUIkewsMmc/Zg66+scxXHg0F10FXByOBaG3F+yMEemcQ==
12911291
dependencies:
12921292
express-prom-bundle "^6.6.0"
1293+
node-fetch "^2.7.0"
12931294
prom-client "^14.2.0"
12941295

12951296
"@snapshot-labs/snapshot-sentry@^1.4.0":
@@ -4594,7 +4595,7 @@ neo-async@^2.6.2:
45944595
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
45954596
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
45964597

4597-
4598+
[email protected], node-fetch@^2.7.0:
45984599
version "2.7.0"
45994600
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
46004601
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==

0 commit comments

Comments
 (0)