Skip to content

Commit 1eecb02

Browse files
authored
doc(node): Fix ignoreIncomingRequestBody JSDoc (#16331)
This PR just fixes incorrect JSDoc where I missed a mix-up of incoming and outgoing requests for the `ignoreIncomingRequestBody` option while reviewing. Raised in https://github.com/getsentry/sentry-docs/pull/13698/files#r2088760944
1 parent 593d5b3 commit 1eecb02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/node/src/integrations/http/SentryHttpInstrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export type SentryHttpInstrumentationOptions = InstrumentationConfig & {
7777
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
7878
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
7979
*
80-
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
81-
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
80+
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
81+
* @param request Contains the {@type RequestOptions} object used to make the incoming request.
8282
*/
8383
ignoreIncomingRequestBody?: (url: string, request: http.RequestOptions) => boolean;
8484

packages/node/src/integrations/http/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ interface HttpOptions {
8585
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
8686
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
8787
*
88-
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
89-
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
88+
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
89+
* @param request Contains the {@type RequestOptions} object used to make the incoming request.
9090
*/
9191
ignoreIncomingRequestBody?: (url: string, request: RequestOptions) => boolean;
9292

0 commit comments

Comments
 (0)