Skip to content

docs(js): Add docs for ignoreStaticAssets #14608

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -102,6 +102,13 @@ The callback function receives two arguments:
- `urlPath`: The URL path of the incoming request, including the query string if available. For example: `/users?name=John`.
- `request`: An object of type `IncomingMessage` containing the incoming request. You can use this to filter on properties like the request method or headers.

### `ignoreStaticAssets`

_Type: `boolean`_ (Defaults to `true`)

If set to true, no spans will be captured for static assets like images, fonts, and other files.


### `trackIncomingRequestsAsSessions`

_Type: `boolean`_ (Defaults to `true`)
Expand Down