diff --git a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx index bb9f4b4326ec0..1f8a0ab7789aa 100644 --- a/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/nodefetch.mdx @@ -60,3 +60,21 @@ 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` + +_Type: `boolean`_ + +If set to false, no spans will be captured. + +### `requestHook` + +_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` + +_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.