Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Add a couple comments on breadcrumb config and early exit behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisJEllis committed Dec 13, 2016
1 parent 2c90e0f commit e8568b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ extend(Raven.prototype, {
this.release = options.release || process.env.SENTRY_RELEASE || '';
this.environment = options.environment || process.env.SENTRY_ENVIRONMENT || '';

// autoBreadcrumbs: true enables all, autoBreadcrumbs: false disables all
// autoBreadcrumbs: { http: true } enables a single type
// this procedure will ensure that this.autoBreadcrumbs is an object populated
// with keys -> bools reflecting actual status of all breadcrumb types
var autoBreadcrumbDefaults = {
console: false,
http: false,
Expand Down Expand Up @@ -409,6 +413,7 @@ extend(Raven.prototype, {
},

captureBreadcrumb: function (breadcrumb) {
// Avoid capturing global-scoped breadcrumbs before instrumentation finishes
if (!this.installed) return;

breadcrumb = extend({
Expand Down

0 comments on commit e8568b1

Please sign in to comment.