Skip to content

Commit

Permalink
Merge branch 'main' into auto-approve-types-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos authored Jan 29, 2025
2 parents d70bc77 + 765dbfe commit 9016028
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 22 deletions.
13 changes: 12 additions & 1 deletion api/lib/instrument.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,16 @@ Sentry.init({
dsn: 'https://[email protected]/4508002559393792',
release: pkg.version,
environment: SENTRY_ENVIRONMENT,
tracesSampleRate: 0.1
tracesSampleRate: 0.1,
// Ignore Fastify 4xx errors
// Remove once https://github.com/getsentry/sentry-javascript/pull/13198 lands
beforeSend (event, { originalException: err }) {
const isBadRequest =
typeof err === 'object' &&
err !== null &&
'statusCode' in err &&
typeof err.statusCode === 'number' &&
err.statusCode < 500
return isBadRequest ? null : event
}
})
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@filecoin-station/spark-piece-indexer-repository": "^1.0.0",
"@sentry/node": "^8.51.0",
"@sentry/node": "^8.52.0",
"fastify": "^5.2.1",
"ioredis": "^5.4.2"
}
Expand Down
2 changes: 1 addition & 1 deletion indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@filecoin-station/spark-piece-indexer-repository": "^1.0.0",
"@ipld/dag-cbor": "^9.2.2",
"@sentry/node": "^8.51.0",
"@sentry/node": "^8.52.0",
"debug": "^4.4.0",
"ioredis": "^5.4.2",
"multiformats": "^13.3.1",
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"homepage": "https://github.com/filecoin-station/piece-indexer#readme",
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/node": "^22.10.10",
"@types/node": "^22.12.0",
"prettier": "^3.4.2",
"standard": "^17.1.2",
"typescript": "^5.7.3"
Expand Down

0 comments on commit 9016028

Please sign in to comment.