From 57dd4ff042912bd694a7ef4fe19a4d8c0ca6935b Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Wed, 30 Nov 2022 11:39:10 -0800 Subject: [PATCH] add `RequestData` integration to nextjs and remix docs --- .../configuration/integrations/default.mdx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/platforms/javascript/common/configuration/integrations/default.mdx b/src/platforms/javascript/common/configuration/integrations/default.mdx index ab93044e11337..6762e6a0dd4ef 100644 --- a/src/platforms/javascript/common/configuration/integrations/default.mdx +++ b/src/platforms/javascript/common/configuration/integrations/default.mdx @@ -146,6 +146,43 @@ This integration deduplicates certain events. It can be helpful if you're receiv + + +### RequestData + +_(New in version 7.17.1.)_ + +_Import name: `Sentry.Integrations.RequestData`_ + +This integration adds data from incoming requests to transaction and error events that occur during request handling done by the backend. + +Available options: + +```javascript +{ + // Controls what types of data are added to the event + include: { + cookies: boolean // default: true, + data: boolean // default: true, + headers: boolean // default: true, + ip: boolean // default: false, + query_string: boolean // default: true, + url: boolean // default: true, + user: boolean | { + id: boolean // default: true, + username: boolean // default: true, + email: boolean // default: true, + }, + }, + // Controls how the transaction will be reported. Options are 'path' (`/some/route`), + // 'methodPath' (`GET /some/route`), and 'handler' (the name of the route handler + // function, if available) + transactionNamingScheme: string // default: 'methodPath', +}; +``` + + + ## Modifying System Integrations To disable system integrations, set `defaultIntegrations: false` when calling `init()`.