Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 0399b83

Browse files
committed
chore: remove Sentry
Remove Sentry from package dependencies, remove all calls to Sentry SDK, and remove `lib/instrument.js` files. Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent bfe4176 commit 0399b83

File tree

11 files changed

+11
-870
lines changed

11 files changed

+11
-870
lines changed

api/bin/spark.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import '../lib/instrument.js'
21
import assert from 'node:assert'
32
import http from 'node:http'
43
import { once } from 'node:events'

api/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { json, redirect, status } from 'http-responders'
2-
import * as Sentry from '@sentry/node'
32
import getRawBody from 'raw-body'
43
import assert from 'http-assert'
54
import { validate } from './lib/validate.js'
@@ -308,10 +307,6 @@ const errorHandler = (res, err, logger) => {
308307
logger.error(err)
309308
status(res, 500)
310309
}
311-
312-
if (res.statusCode >= 500) {
313-
Sentry.captureException(err)
314-
}
315310
}
316311

317312
const getSummaryOfEligibleDealsForMiner = async (_req, res, client, minerId) => {

api/lib/instrument.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

api/lib/round-tracker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'node:assert'
2-
import * as Sentry from '@sentry/node'
2+
33
import { createMeridianContract } from './ie-contract.js'
44

55
export const TASKS_PER_ROUND = 100
@@ -34,7 +34,6 @@ export async function startRoundTracker ({ pgPool, signal, recordTelemetry }) {
3434

3535
updateSparkRound(pgPool, contract, newRoundIndex, recordTelemetry, blockNumber).catch(err => {
3636
console.error('Cannot handle RoundStart:', err)
37-
Sentry.captureException(err)
3837
})
3938
}
4039
contract.on('RoundStart', onRoundStart)

api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@filecoin-station/spark-impact-evaluator": "^1.2.4",
2222
"@glif/filecoin-address": "^4.0.0",
2323
"@influxdata/influxdb-client": "^1.35.0",
24-
"@sentry/node": "^9.43.0",
2524
"compare-versions": "^6.1.1",
2625
"ethers": "^6.15.0",
2726
"http-assert": "^1.5.0",

0 commit comments

Comments
 (0)