Skip to content

Commit fc5e3b2

Browse files
committed
Release v2.15.1
1 parent 802b5ce commit fc5e3b2

26 files changed

+66
-34
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Rollbar.js
22

3-
[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.15.0)](https://travis-ci.org/rollbar/rollbar.js)
3+
[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.15.1)](https://travis-ci.org/rollbar/rollbar.js)
44
[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/rollbar/rollbar.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rollbar/rollbar.js/context:javascript)
55
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/rollbar/rollbar.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rollbar/rollbar.js/alerts)
66

dist/rollbar.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ function _gWindow() {
18381838
/* global __DEFAULT_ENDPOINT__:false */
18391839

18401840
var defaultOptions = {
1841-
version: "2.15.0",
1841+
version: "2.15.1",
18421842
scrubFields: ["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","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","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"],
18431843
logLevel: "debug",
18441844
reportLevel: "debug",
@@ -5571,7 +5571,7 @@ Instrumenter.prototype.instrumentNetwork = function() {
55715571
} else {
55725572
xhr.onreadystatechange = onreadystatechangeHandler;
55735573
}
5574-
if (xhr.__rollbar_xhr) {
5574+
if (xhr.__rollbar_xhr && self.trackHttpErrors()) {
55755575
xhr.__rollbar_xhr.stack = (new Error()).stack;
55765576
}
55775577
return orig.apply(this, arguments);
@@ -5629,7 +5629,9 @@ Instrumenter.prototype.instrumentNetwork = function() {
56295629
}
56305630
}
56315631
self.captureNetwork(metadata, 'fetch', undefined);
5632-
metadata.stack = (new Error()).stack;
5632+
if (self.trackHttpErrors()) {
5633+
metadata.stack = (new Error()).stack;
5634+
}
56335635
return orig.apply(this, args).then(function (resp) {
56345636
metadata.end_time_ms = _.now();
56355637
metadata.status_code = resp.status;
@@ -5710,6 +5712,12 @@ Instrumenter.prototype.fetchHeaders = function(inHeaders, headersConfig) {
57105712
return outHeaders;
57115713
}
57125714

5715+
Instrumenter.prototype.trackHttpErrors = function() {
5716+
return this.autoInstrument.networkErrorOnHttp5xx ||
5717+
this.autoInstrument.networkErrorOnHttp4xx ||
5718+
this.autoInstrument.networkErrorOnHttp0;
5719+
}
5720+
57135721
Instrumenter.prototype.errorOnHttpStatus = function(metadata) {
57145722
var status = metadata.status_code;
57155723

dist/rollbar.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.js

+11-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.named-amd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.js

+11-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollbar.noconflict.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)