You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No Console Logs Recorded in the Session Replay #12244
we have tests specifically ensuring that this works 🤔 do you have a link to a replay where this happens? Could you try with debug: true enabled, would be interesting to see where the logs go in terms of timeline.
@mydea do we have any size limits on console logs? The log message seems to be quite big.
For the error, it looks like it's an uncaught rejection which is capture as an exception to Sentry. We do not display these in the Console tab of Replay unless it was explicitly called with console.error().
@mydea do we have any size limits on console logs? The log message seems to be quite big.
For the error, it looks like it's an uncaught rejection which is capture as an exception to Sentry. We do not display these in the Console tab of Replay unless it was explicitly called with console.error().
Do you mean it doesn't record console.log() but only console.error()?
@Hugo-Dz no, we capture both, I was more remarking that the Error message you see in the console is not called with console.error and so it's expected that you won't see it in the Replay's Console tab (this is because it's captured as an exception and displayed in Breadcrumbs).
Can you give us a repro for this? Or a publicly accessible URL where we can debug?
Activity
mydea commentedon May 28, 2024
Hey,
we have tests specifically ensuring that this works 🤔 do you have a link to a replay where this happens? Could you try with
debug: trueenabled, would be interesting to see where the logs go in terms of timeline.billyvg commentedon May 28, 2024
@mydea do we have any size limits on console logs? The log message seems to be quite big.
For the error, it looks like it's an uncaught rejection which is capture as an exception to Sentry. We do not display these in the Console tab of Replay unless it was explicitly called with
console.error().Hugo-Dz commentedon May 28, 2024
Do you mean it doesn't record console.log() but only console.error()?
mydea commentedon May 29, 2024
We truncate logs when we add them as breadcrumbs to replay - we have specifically a test for this 😅 https://github.com/getsentry/sentry-javascript/blob/develop/dev-packages/browser-integration-tests/suites/replay/captureConsoleLog/test.ts#L59
test(replay): Remove outdated test constraint (#12270)
billyvg commentedon May 30, 2024
@Hugo-Dz no, we capture both, I was more remarking that the Error message you see in the console is not called with
console.errorand so it's expected that you won't see it in the Replay's Console tab (this is because it's captured as an exception and displayed in Breadcrumbs).Can you give us a repro for this? Or a publicly accessible URL where we can debug?
Hugo-Dz commentedon May 30, 2024
@billyvg For some reasons, logs now shows up in my Replays, not sure why it was not the case before 🤔
You can close this :)
mydea commentedon May 31, 2024
If somebody encounters this again, please re-open the issue!