Skip to content

fix(nextjs/remix): Add RequestData integration to default integrations page #5871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,43 @@ This integration deduplicates certain events. It can be helpful if you're receiv

<PlatformContent includePath="configuration/dedupe" />

<PlatformSection supported={["javascript.nextjs", "javascript.remix"]}>

### 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',
};
```

</PlatformSection>

## Modifying System Integrations

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