Comparing version 0.3.13 to 0.4.0
# Change Log | ||
**0.4.0** | ||
- Set the default handler to be `inline` so that if the program crashes since some configurations will shut down before the `setInterval()` is fired. | ||
**0.3.13** | ||
- Allow environment and framework to be overridden by payload data. | ||
**0.3.12** | ||
@@ -4,0 +10,0 @@ - Fix param scrubbing failing when the value is null/undefined ([#30](https://github.com/rollbar/node_rollbar/pull/30)) |
@@ -20,3 +20,3 @@ var http = require('http'); | ||
branch: null, // git branch name | ||
handler: 'setInterval', // 'nextTick' or 'setInterval' or 'inline' | ||
handler: 'inline', // 'nextTick' or 'setInterval' or 'inline' | ||
handlerInterval: 3, // number of seconds to use with setInterval handler | ||
@@ -23,0 +23,0 @@ batchSize: 10, |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.3.13", | ||
"version": "0.4.0", | ||
"repository": "git://github.com/rollbar/node_rollbar.git", | ||
@@ -16,0 +16,0 @@ "author": "Rollbar, Inc. <support@rollbar.com>", |
@@ -234,3 +234,3 @@ # Rollbar notifier for Node.js [![Build Status](https://secure.travis-ci.org/rollbar/node_rollbar.png?branch=master)](https://travis-ci.org/rollbar/node_rollbar) | ||
Default: `setInterval` | ||
Default: `inline` | ||
</dd> | ||
@@ -280,3 +280,8 @@ | ||
## Performance | ||
The default configuration uses the `inline` handler which will cause errors to be reported to Rollbar at the time they occur. This works well for small applications but can quickly become a problem for high-throughput apps. For better performance, the `setInterval` handler is recommended since it queues up errors before sending them. | ||
Note: It is possible to get into the situation where the `setInterval` handler does not fire before your app closes. You should make sure to call `rollbar.shutdown()` in order to flush all errors before exiting. | ||
## Help / Support | ||
@@ -283,0 +288,0 @@ |
@@ -73,3 +73,3 @@ var api = require('./lib/api'); | ||
* environment - Default: 'unspecified' - the environment the code is running in. e.g. 'staging' | ||
* handler - Default: 'setInterval' - the method that the notifier will use to report exceptions, | ||
* handler - Default: 'inline' - the method that the notifier will use to report exceptions, | ||
* choices: | ||
@@ -76,0 +76,0 @@ * setInterval: all items that are queued up are sent to rollbar in batches in a setInterval callback |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59751
302