Skip to content

Conversation

@vladanpaunovic
Copy link
Contributor

@vladanpaunovic vladanpaunovic commented Jun 10, 2022

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

closes #3946
fixes #4599

@github-actions
Copy link
Contributor

github-actions bot commented Jun 10, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.43 KB (added)
@sentry/browser - ES5 CDN Bundle (minified) 60.21 KB (added)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.24 KB (added)
@sentry/browser - ES6 CDN Bundle (minified) 53.83 KB (added)
@sentry/browser - Webpack (gzipped + minified) 20 KB (added)
@sentry/browser - Webpack (minified) 65.2 KB (added)
@sentry/react - Webpack (gzipped + minified) 20.02 KB (added)
@sentry/nextjs Client - Webpack (gzipped + minified) 43.95 KB (added)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.56 KB (added)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.11 KB (added)

expect(global.console.error).not.toBe(originalConsole.error);
expect(global.console.log).not.toBe(originalConsole.log);
expect(global.console.assert).not.toBe(originalConsole.assert);
expect(global.console.trace).not.toBe(originalConsole.trace);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a result of adding trace to CONSOLE_LEVELS, we are now monkeypatching everything but console.table.

I am not sure whether we want this or not. I would appreciate someone double-checking this.

Also, why are we not monkeypathcing console.table as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we want this. Don't know why we're not using table, but there are a few things to consider: 1. it has sort of a different API than the other methods 2. No IE11 support

@vladanpaunovic vladanpaunovic merged commit afe1000 into master Jun 10, 2022
@vladanpaunovic vladanpaunovic deleted the add-trace-level branch June 10, 2022 11:54
@AbhiPrasad
Copy link
Member

For next time: We should have made this a feat(utils) instead of a chore. Let’s make sure we pay attention to this so the changelog generation is easier in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Add ability to configure log level for instrumentConsole

4 participants