Skip to content

Commit 6ed03c8

Browse files
lobsterkatielforst
authored andcommitted
fix(nextjs/remix): Add RequestData integration to default integrations page (#5871)
When the new `RequestData` integration was added to the node docs in #5674, it should also have been added to the nextjs and remix docs, since both frameworks are combo frontend-backend.
1 parent 6afc2b6 commit 6ed03c8

File tree

1 file changed

+37
-0
lines changed
  • src/platforms/javascript/common/configuration/integrations

1 file changed

+37
-0
lines changed

src/platforms/javascript/common/configuration/integrations/default.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,43 @@ This integration deduplicates certain events. It can be helpful if you're receiv
146146

147147
<PlatformContent includePath="configuration/dedupe" />
148148

149+
<PlatformSection supported={["javascript.nextjs", "javascript.remix"]}>
150+
151+
### RequestData
152+
153+
_(New in version 7.17.1.)_
154+
155+
_Import name: `Sentry.Integrations.RequestData`_
156+
157+
This integration adds data from incoming requests to transaction and error events that occur during request handling done by the backend.
158+
159+
Available options:
160+
161+
```javascript
162+
{
163+
// Controls what types of data are added to the event
164+
include: {
165+
cookies: boolean // default: true,
166+
data: boolean // default: true,
167+
headers: boolean // default: true,
168+
ip: boolean // default: false,
169+
query_string: boolean // default: true,
170+
url: boolean // default: true,
171+
user: boolean | {
172+
id: boolean // default: true,
173+
username: boolean // default: true,
174+
email: boolean // default: true,
175+
},
176+
},
177+
// Controls how the transaction will be reported. Options are 'path' (`/some/route`),
178+
// 'methodPath' (`GET /some/route`), and 'handler' (the name of the route handler
179+
// function, if available)
180+
transactionNamingScheme: string // default: 'methodPath',
181+
};
182+
```
183+
184+
</PlatformSection>
185+
149186
## Modifying System Integrations
150187

151188
To disable system integrations, set `defaultIntegrations: false` when calling `init()`.

0 commit comments

Comments
 (0)