Skip to content

Commit ca4f889

Browse files
author
Christian Hotz
committed
docs: useDomainPerRequest flag
1 parent 93349e7 commit ca4f889

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ The plugin options, you can pass in while registering are the following:
2828
| property | type | description |
2929
|:--------------------------|:--------------|:-----------------------------------------------------------------------------------------------------------------------------|
3030
| `baseUri` | string | [uri](https://github.com/hapijs/joi/blob/master/API.md#stringurioptions) to be used as base for captured urls |
31-
| `trackUser` | boolean | Whether or not to track the user via the per-request scope. Default: `true` |
3231
| `scope.tags` | object | An array of tags to be sent with every event |
3332
| `scope.tags.name` | string | The name of a tag |
3433
| `scope.tags.value` | any | The value of a tag |
@@ -45,7 +44,9 @@ The plugin options, you can pass in while registering are the following:
4544
| `client.serverName` | string | Overwrite the server name (device name) |
4645
| `client.beforeSend` | func | A callback invoked during event submission, allowing to optionally modify the event before it is sent to Sentry |
4746
| `client.beforeBreadcrumb` | func | A callback invoked when adding a breadcrumb, allowing to optionally modify it before adding it to future events. |
47+
| `trackUser` | boolean | Whether or not to track the user via the per-request scope. Default: `true` |
4848
| `catchLogErrors` | boolean/array | Handles [capturing server.log and request.log events](#capturing-serverlog-and-requestlog-events). Default: `false` |
49+
| `useDomainPerRequest` | boolean | Whether or not to use [Domains](https://nodejs.org/docs/latest-v12.x/api/domain.html) for seperating request processing. Only activate this feature, if you really need to seperate breadcrumbs, etc. of requests. It utilizes a deprecated Node.js feature which reduces [performance](https://github.com/hydra-newmedia/hapi-sentry/pull/21#issuecomment-574602486). Default: `false` |
4950

5051
The `baseUri` option is used internally to get a correct URL in sentry issues.
5152
The `scope` option is used to set up a global

0 commit comments

Comments
 (0)