Skip to content

Commit f960139

Browse files
committed
stop potentially overwriting request data on event
1 parent c0565f8 commit f960139

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nextjs/src/utils/instrumentServer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ function shouldTraceRequest(url: string, publicDirFiles: Set<string>): boolean {
288288

289289
function addRequestDataToEvent(event: SentryEvent, req: NextRequest): SentryEvent {
290290
event.request = {
291+
...event.request,
291292
// TODO body/data
292293
url: req.url.split('?')[0],
293294
cookies: req.cookies,

0 commit comments

Comments
 (0)