OS:
Platform:
SDK:
@sentry/react-nativeSDK version: 1.2.0
react-native version: 0.59.10
Are you using Expo?
Are you using sentry.io or on-premise?
I have following issue:
In my system, while debugging on Chrome , all my logs are coming from a file named instrument.js
which is placed at /node_modules/@sentry/utils/dist/instrument.js at line 104
But I want my logs to show the line from where log is originated.
Let me know if there is any possible configuration that I am missing.
Hey, this should solve your issue: https://github.com/getsentry/sentry-javascript/issues/1003#issuecomment-380310913
Solution: https://github.com/getsentry/sentry-react-native/issues/794#issuecomment-610895561
Tried above fix, didn't work, I had to comment the line in instrument.js file from which all the logs were generated.
please re-open this issue, i have the same problem all console logs shows instrument.js 112

In instrument.js file,
do the following changes in the function containing this line points to :
function instrumentConsole() {
if (('console' in global)) {
return;
}
}
Hence, if there is a console module defined globally, it will return, we just have to reverse the condition. However, this change needs to be reverted in production build or hence console logs might not get sent.
None of the above are valid solutions.. can this please be re-opened?
OK sorry if I wasn't clear enough, adding /ravenjs/ is wrong you need to add /@sentry/ then it works just fine.
Before:

After:

Add this to your Chrome Blackbox settings:

This solution is not working. Tried restarting Chrome after adding the blackbox, it didn't help
This solution is not working. Tried restarting Chrome after adding the blackbox, it didn't help
Try adding instrument.ts to the Blackbox. It just worked for me

Ignoring script in Firefox does not change the behavior. This issue makes debugging useless since the console.log stack is completely gone.
Be sure to add both instrument.ts and /@sentry/ to Blackboxing.
Most helpful comment
Try adding
instrument.tsto the Blackbox. It just worked for me