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

All console.logs in Chrome Devtools are swallowed in telemetry.js #66

Open
dht opened this issue Jul 11, 2022 · 1 comment
Open

All console.logs in Chrome Devtools are swallowed in telemetry.js #66

dht opened this issue Jul 11, 2022 · 1 comment

Comments

@dht
Copy link

dht commented Jul 11, 2022

I've implement React Rollbar according to the documentation and the error logs are reaching the dashboard as expected:

import { Provider as ErrorProvider } from '@rollbar/react';


export const rollbarConfig = {
    accessToken: import.meta.env.VITE_ROLLBAR_ACCESS_TOKEN,
    environment: 'development',
    captureUncaught: true,
    captureUnhandledRejections: true,
};

// and in the component render wrapping the root app element with...
<ErrorProvider config={rollbarConfig}>
     <App />
</ErrorProvider>

The issue is the stack of every console.log in the app now shows it originated at telemetry.js line 518:

day -> 1 telemetry.js:518

Is there a flag to disable this behaviour to see the original source line while developing.

Changing the environment field in the configuration to development did NOT work.

@QuadTriangle
Copy link

For future reference:

set autoInstrument: false for local env.

rollbar/rollbar.js#575

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