Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blackboxing scripts #2534

Closed
kkmuffme opened this issue Apr 6, 2020 · 2 comments
Closed

Blackboxing scripts #2534

kkmuffme opened this issue Apr 6, 2020 · 2 comments

Comments

@kkmuffme
Copy link

kkmuffme commented Apr 6, 2020

I'm using

var _info = console.info;
console.info = function( message ) {
	Sentry.captureException( new Error( message ), { level: 'info' });

	_info.apply( console, arguments );
}

in a custom handler.
The stacktrace contains the file/place where I call this, which I'd like to remove, since this shows up for everything reported but is useless info.
In Chrome this is called "blackboxing" & works great - is there a similar feature in sentry?

@kamilogorek
Copy link
Contributor

@kkmuffme
Copy link
Author

Thx, works with the beforeSend

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

No branches or pull requests

2 participants