From 7ad5e835fa2e1b39ef90fc48e7231c1d35ee1784 Mon Sep 17 00:00:00 2001 From: JPeer264 Date: Wed, 22 Oct 2025 10:47:39 +0200 Subject: [PATCH 1/2] feat(node): add new options to nativeNodeFetchIntegration --- .../configuration/integrations/nodefetch.mdx | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx index bb9f4b4326ec0d..2793132f8be2e0 100644 --- a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx @@ -60,3 +60,51 @@ If set to false, no breadcrumbs will be captured. _Type: `(url: string) => boolean`_ Allows you to define a method to filter out outgoing requests based on the URL. If the method returns `true`, the request will be ignored. + +### `spans` + + + + + +This option is not available in `@sentry/node-core`. + + + + + +_Type: `boolean`_ + +If set to false, no spans will be captured. + +### `requestHook` + + + + + +This option is not available in `@sentry/node-core`. + + + + + +_Type: `(span: Span, request: Request) => void`_ + +A callback function that allows you to add custom attributes or modify the span for outgoing fetch requests. The function is called with the span and the native fetch `Request` object. + +### `responseHook` + + + + + +This option is not available in `@sentry/node-core`. + + + + + +_Type: `(span: Span, response: Response) => void`_ + +A callback function that allows you to add custom attributes or modify the span based on the response of outgoing fetch requests. The function is called with the span and the native fetch `Response` object. From 8e2d741d89823cb3bbfd49fddd29784daff2de5d Mon Sep 17 00:00:00 2001 From: JPeer264 Date: Thu, 23 Oct 2025 10:37:43 +0200 Subject: [PATCH 2/2] fixup! feat(node): add new options to nativeNodeFetchIntegration --- .../configuration/integrations/nodefetch.mdx | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx index 2793132f8be2e0..1f8a0ab7789aa2 100644 --- a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx @@ -63,48 +63,18 @@ Allows you to define a method to filter out outgoing requests based on the URL. ### `spans` - - - - -This option is not available in `@sentry/node-core`. - - - - - _Type: `boolean`_ If set to false, no spans will be captured. ### `requestHook` - - - - -This option is not available in `@sentry/node-core`. - - - - - _Type: `(span: Span, request: Request) => void`_ A callback function that allows you to add custom attributes or modify the span for outgoing fetch requests. The function is called with the span and the native fetch `Request` object. ### `responseHook` - - - - -This option is not available in `@sentry/node-core`. - - - - - _Type: `(span: Span, response: Response) => void`_ A callback function that allows you to add custom attributes or modify the span based on the response of outgoing fetch requests. The function is called with the span and the native fetch `Response` object.