-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(node): Add docs for maxIncomingRequestBodySize
and ignoreIncomingRequestBody
#13698
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,32 @@ _Type: `boolean`_ | |
|
||
If set to false, no breadcrumbs will be captured. | ||
|
||
### `maxIncomingRequestBodySize` | ||
|
||
_Type: `'none' | 'small' | 'medium' | 'always'`_ (Defaults to `'medium'`) | ||
|
||
Controls the maximum size of incoming HTTP request bodies attached to events. | ||
|
||
Available options: | ||
- 'none': No request bodies will be attached | ||
- 'small': Request bodies up to 1,000 bytes will be attached | ||
- 'medium': Request bodies up to 10,000 bytes will be attached (default) | ||
- 'always': Request bodies will always be attached | ||
|
||
Note that even with the `'always'` setting, bodies exceeding 1 MB will never be attached for performance and security reasons. | ||
|
||
### `ignoreIncomingRequestBody` | ||
|
||
_Type: `(url: string, request: RequestOptions) => boolean`_ | ||
|
||
Allows you to ignore the request body for incoming HTTP requests to URLs where the given callback returns `true`. | ||
This can be useful for long running requests where the body is not needed and we want to avoid capturing it. | ||
|
||
The callback function receives two arguments: | ||
|
||
- `url`: The full URL of the outgoing request, including the protocol, host, port, path and query string. For example: `https://example.com/users?name=John`. | ||
- `request`: An object of type `RequestOptions` containing the outgoing request's options. You can use this to filter on properties like the request method or headers. | ||
|
||
|
||
### `ignoreOutgoingRequests` | ||
|
||
_Type: `(url: string, request: RequestOptions) => boolean`_ | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just noticed this:
Probably an issue on its own, so feel free to leave as-is for this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created a PR: #13769
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thanks for doing this!