Open dht opened 2 years ago
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:
console.log
telemetry.js
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.
development
For future reference:
set autoInstrument: false for local env.
autoInstrument: false
https://github.com/rollbar/rollbar.js/issues/575
I've implement React Rollbar according to the documentation and the error logs are reaching the dashboard as expected:
The issue is the stack of every
console.log
in the app now shows it originated attelemetry.js
line 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.