We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b42518 commit 0ebcde1Copy full SHA for 0ebcde1
packages/browser/src/integrations/httpcontext.ts
@@ -26,10 +26,10 @@ export class HttpContext implements Integration {
26
}
27
28
/** @inheritDoc */
29
- public processEvent(event: Event): Event {
+ public preprocessEvent(event: Event): void {
30
// if none of the information we want exists, don't bother
31
if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {
32
- return event;
+ return;
33
34
35
// grab as much info as exists and add it to the event
@@ -44,6 +44,6 @@ export class HttpContext implements Integration {
44
};
45
const request = { ...event.request, ...(url && { url }), headers };
46
47
- return { ...event, request };
+ event.request = request;
48
49
0 commit comments