Skip to content

Commit ac43b2f

Browse files
committed
use sveltekit
1 parent afddce3 commit ac43b2f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/sveltekit/src/client/handleError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function handleErrorWithSentry(handleError?: HandleClientError): HandleCl
1616
captureException(input.error, scope => {
1717
scope.addEventProcessor(event => {
1818
addExceptionMechanism(event, {
19-
type: 'instrument',
19+
type: 'sveltekit',
2020
handled: false,
2121
});
2222
return event;

packages/sveltekit/src/server/handleError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function handleErrorWithSentry(handleError?: HandleServerError): HandleSe
1616
captureException(input.error, scope => {
1717
scope.addEventProcessor(event => {
1818
addExceptionMechanism(event, {
19-
type: 'instrument',
19+
type: 'sveltekit',
2020
handled: false,
2121
});
2222
return event;

packages/sveltekit/src/server/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function wrapLoadWithSentry(origLoad: ServerLoad): ServerLoad {
3131
captureException(objectifiedErr, scope => {
3232
scope.addEventProcessor(event => {
3333
addExceptionMechanism(event, {
34-
type: 'instrument',
34+
type: 'sveltekit',
3535
handled: false,
3636
data: {
3737
function: 'load',

packages/sveltekit/test/server/handleError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ describe('handleError', () => {
7676

7777
expect(addEventProcessorSpy).toBeCalledTimes(1);
7878
expect(mockAddExceptionMechanism).toBeCalledTimes(1);
79-
expect(mockAddExceptionMechanism).toBeCalledWith({}, { handled: false, type: 'instrument' });
79+
expect(mockAddExceptionMechanism).toBeCalledWith({}, { handled: false, type: 'sveltekit' });
8080
});
8181
});

packages/sveltekit/test/server/load.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('wrapLoadWithSentry', () => {
102102
expect(mockAddExceptionMechanism).toBeCalledTimes(1);
103103
expect(mockAddExceptionMechanism).toBeCalledWith(
104104
{},
105-
{ handled: false, type: 'instrument', data: { function: 'load' } },
105+
{ handled: false, type: 'sveltekit', data: { function: 'load' } },
106106
);
107107
});
108108
});

0 commit comments

Comments
 (0)