"extra" field is always shown when using console.log


#1

In the issue detail view, the “extra” field is always shown, making the log much bigger than it would have to be: http://prntscr.com/mb2srx

Is this a configuration error from my side? How can I remove that field?


#2

extra field contains all the arguments passed to the console methods, serialized up to 2 levels deep (so it won’t get out of hand).

Here’s how to customize breadcrumbs: https://docs.sentry.io/enriching-error-data/breadcrumbs/?platform=browser#breadcrumb-customization

In your specific case, it’d be:

Sentry.init({
  dsn: 'https://<key>@sentry.io/',
  beforeBreadcrumb(breadcrumb) {
    if (breadcrumb.category === 'console') {
      delete breadcrumb.data.extra;
    }

    return breadcrumb;
  },
});