Skip to content

Commit 0ebcde1

Browse files
committed
ref: Move httpcontext to preprocess
1 parent 0b42518 commit 0ebcde1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/browser/src/integrations/httpcontext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export class HttpContext implements Integration {
2626
}
2727

2828
/** @inheritDoc */
29-
public processEvent(event: Event): Event {
29+
public preprocessEvent(event: Event): void {
3030
// if none of the information we want exists, don't bother
3131
if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {
32-
return event;
32+
return;
3333
}
3434

3535
// grab as much info as exists and add it to the event
@@ -44,6 +44,6 @@ export class HttpContext implements Integration {
4444
};
4545
const request = { ...event.request, ...(url && { url }), headers };
4646

47-
return { ...event, request };
47+
event.request = request;
4848
}
4949
}

0 commit comments

Comments
 (0)