From 2c90e0fb87444e1408038de5fb45d2cca8345b8c Mon Sep 17 00:00:00 2001 From: Lewis Ellis Date: Fri, 9 Dec 2016 23:12:05 -0800 Subject: [PATCH] Change default maxBreadcrumbs to 30 --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 2ddb54a..e7b31f8 100644 --- a/lib/client.js +++ b/lib/client.js @@ -48,7 +48,8 @@ extend(Raven.prototype, { http: false, pg: false }; - this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 100, 100)); + // default to 30, don't allow higher than 100 + this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 30, 100)); this.autoBreadcrumbs = extend({}, autoBreadcrumbDefaults); if (typeof options.autoBreadcrumbs !== 'undefined') { for (var key in autoBreadcrumbDefaults) {