Skip to content

Commit d34e0ee

Browse files
authored
Merge pull request #4522 from segmentio/uodate-node-with-disabled
Add 'disable' setting to node docs
2 parents 9fec199 + 6a14ed7 commit d34e0ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ Setting | Details
286286
`maxEventsInBatch` _number_ | The number of messages to enqueue before flushing. The default is: `15`
287287
`flushInterval` _number_ | The number of milliseconds to wait before flushing the queue automatically. The default is: `10000`
288288
`httpRequestTimeout` | The maximum number of milliseconds to wait for an http request. The default is: `10000`
289+
`disable` | Disable the analytics library for testing. The default is: `false`
289290
290291
## Graceful shutdown
291292
Avoid losing events after shutting down your console. Call `.closeAndFlush()` to stop collecting new events and flush all existing events. If a callback on an event call is included, this also waits for all callbacks to be called, and any of their subsequent promises to be resolved.

src/connections/sources/catalog/libraries/server/node/migration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ If you're using the [classic version of Analytics Node.js](/docs/connections/sou
6060
```
6161
* The `flushAt` configuration option changed to `maxEventsInBatch`.
6262

63+
* The `enable` setting (for disabling analytics during tests) changed to `disable`. `enable: false` changed to `disable: true`.
64+
6365
#### Removals
6466
The updated Analytics Node.js removed these configuration options:
65-
- `enable`
6667
- `errorHandler` (see the docs on [error handling](/docs/connections/sources/catalog/libraries/server/node//#error-handling) for more information)
6768

6869
The updated Analytics Node.js library removed undocumented behavior around `track` properties
@@ -87,4 +88,4 @@ analytics.track({
8788
myProp: 'abc'
8889
}
8990
})
90-
```
91+
```

0 commit comments

Comments
 (0)