Skip to content
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 @@ -43,6 +43,22 @@ Sentry.init({
});
```

## Options

### `ignoreConnectSpans`

_Type: `boolean`_

_Available since: `10.40.0`_

When `true`, the integration does not create spans for `pg.connect` or `pg.pool.connect` calls. Use this to reduce trace noise when connection setup is not useful to monitor. Default is `false`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When `true`, the integration does not create spans for `pg.connect` or `pg.pool.connect` calls. Use this to reduce trace noise when connection setup is not useful to monitor. Default is `false`.
When set to `true`, the integration won’t create spans for `pg.connect` or `pg.pool.connect` calls. Enable this to reduce trace noise if you don’t need visibility into connection setup. Defaults to `false`.


```JavaScript
Sentry.init({
integrations: [Sentry.postgresIntegration({ ignoreConnectSpans: true })],
});
```

## Supported Versions

- `pg`: `>=8 <9`