Skip to content

Commit f36d197

Browse files
committed
remove markErrorAsCaptured utility and its usage in onHookCall functions
1 parent 948bb41 commit f36d197

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

packages/vike-react-sentry/src/integration/onHookCall.client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react'
2-
import { markErrorAsCaptured } from '../utils/error.js'
32
import type { Config, PageContextClient } from 'vike/types'
43
type Hook = Parameters<Extract<Config['onHookCall'], Function>>[0]
54

@@ -46,7 +45,6 @@ export async function onHookCall(hook: Hook, pageContext: PageContextClient) {
4645
code: 2,
4746
})
4847
Sentry.captureException(error)
49-
markErrorAsCaptured(error)
5048
}
5149
},
5250
)

packages/vike-react-sentry/src/integration/onHookCall.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/node'
2-
import { markErrorAsCaptured } from '../utils/error.js'
32
import type { Config, PageContextServer } from 'vike/types'
43
type Hook = Parameters<Extract<Config['onHookCall'], Function>>[0]
54

@@ -46,7 +45,6 @@ export async function onHookCall(hook: Hook, pageContext: PageContextServer) {
4645
code: 2,
4746
})
4847
Sentry.captureException(error)
49-
markErrorAsCaptured(error)
5048
}
5149
},
5250
)

packages/vike-react-sentry/src/utils/error.ts

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

0 commit comments

Comments
 (0)