Skip to content
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 @@ -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.
Loading