Install via npm
npm i https://github.com/activebridge/bugno-js
Add content of the following snippet before everything you want to track into your page head.
Replace API-KEY with your project api-key on Bugno.io
var _bugnoConfig = ({
accessToken: 'API-KEY',
captureUncaught: true,
captureUnhandledRejections: true
});
To setup additional configuration change defined Bugno object's properties.
Specify snippet version for browser-js, e.g.:
bugnoJsUrl: 'https://cdn.jsdelivr.net/gh/activebridge/[email protected]/dist/bugno.min.js'
Default: latest from master branch
Send specified amount of errors per minute.
Default: 60
Send uncaught errors if specified true
Default: false
Send uncaught rejections if specified true
Default: false
Add which request params fields should be filtered (e.g. ['password', 'creditCard']
)
Default scrubbed fields for servers:
["pw", "pass", "passwd", "password", "password_confirmation", "passwordConfirmation", "confirm_password", "confirmPassword", "secret", "secret_token", "secretToken", "secret_key", "secretKey", "api_key", "access_token", "accessToken", "authenticity_token", "oauth_token", "token", "user_session_secret", "request.session.csrf", "request.session._csrf", "request.params._csrf", "request.cookie", "request.cookies"]
Default scrubbed fields for browsers:
["pw", "pass", "passwd", "password", "secret", "confirm_password", "confirmPassword", "password_confirmation", "passwordConfirmation", "access_token", "accessToken", "secret_key", "secretKey", "secretToken", "cc-number", "card number", "cardnumber", "cardnum", "ccnum", "ccnumber", "cc num", "creditcardnumber", "credit card number", "newcreditcardnumber", "new credit card", "creditcardno", "credit card no", "card#", "card #", "cc-csc", "cvc2", "cvv2", "ccv2", "security code", "card verification", "name on credit card", "name on card", "nameoncard", "cardholder", "card holder", "name des karteninhabers", "card type", "cardtype", "cc type", "cctype", "payment type", "expiration date", "expirationdate", "expdate", "cc-exp"]
The gem is available as open source under the terms of the MIT License.