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

Disable console breadcrumbs by default #455

Open
Widdershin opened this issue Apr 27, 2022 · 3 comments
Open

Disable console breadcrumbs by default #455

Widdershin opened this issue Apr 27, 2022 · 3 comments
Assignees

Comments

@Widdershin
Copy link
Contributor

Widdershin commented Apr 27, 2022

Currently, raygun4js wraps the console methods in order to create breadcrumbs from console messages. Unfortunately, this causes the console messages to show up as being logged from raygun.umd.js or equivalent bundle, which obscures the original source location from the users.

This can be worked around by blackboxing the Raygun source in the browser, or calling rg4js('disableAutoBreadcrumbsConsole'). However, this behaviour can still be very confusing.

We should disable this feature by default, and instead recommend rg4js('enableAutoBreadcrumbsConsole') to customers who want to opt-in to this feature. This should be less surprising, and should help ease our onboarding.

Related: #348, #384

@Widdershin Widdershin self-assigned this May 18, 2022
@ahelord
Copy link

ahelord commented Aug 25, 2022

@Widdershin Hello, did I tell you that this error is proving to be blocking for our implementation since our clients cannot debug their applications? Are we thinking of changing provider of APM. Could you tell me how the progress of this issue is?

@Widdershin
Copy link
Contributor Author

Hi @ahelord, apologies for the delay.

Are you able to use rg4js('disableAutoBreadcrumbsConsole') to workaround this issue in the meantime?

I'll liaise with the team and try to get this issue prioritized.

@ahelord
Copy link

ahelord commented Aug 26, 2022

@Widdershin Console.log hijacking continues with this configuration

Version 2.25.6


      rg4js('apiKey', 'api');
      rg4js('enableCrashReporting', false);
      rg4js('enablePulse', true);
      rg4js('setVersion', version);
    rg4js('disableAutoBreadcrumbsConsole')

    throw 'Error'

image

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