@bugsnag/plugin-simple-throttle

8.1.1 • Public • Published

@bugsnag/plugin-simple-throttle

This plugin adds a safety mechanism to prevent too many events being sent to Bugsnag, saving client bandwidth and error quotas using a simple threshold – i.e. do not send more than n events. It defines a configuration option maxEvents which can be used to customize the behaviour. It is included in the browser notifier.

Note: to support long-lived browser applications, this plugin defines a resetEventCount() method on the client which gets called when the URL of the page changes. This resets the count, allowing new events to be sent.

License

This package is free software released under the MIT License. See LICENSE.txt for details.

Readme

Keywords

none

Package Sidebar

Install

npm i @bugsnag/plugin-simple-throttle

Weekly Downloads

54

Version

8.1.1

License

MIT

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • joshedney
  • ahmed_bugsnag
  • gingerbenw
  • bullmo
  • foygl
  • djskinner
  • tomlongridge
  • imjoehaines
  • twometresteve