Skip to content

Logs: entire log queue is dropped if a single log is bad #5186

@lucas-zimerman

Description

@lucas-zimerman

What React Native libraries do you use?

Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

latest

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇



Sentry.init()

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

Steps to Reproduce

I don't know why the broken log actually gets dropped, but it also drops the other healthy logs. We moved it to the logs project because it seems to be related to backend.

            for (let i = 0; i < 30; i++){
              Sentry.logger.info(`LOOP 5 healthy log 0 - ${i + 1}`);
            }
            Sentry.logger.error('lets break this (LVL 5)', {
              bad5: '{"a":"\uD800"}',
            });

Expected Result

40 logs with level 5

Actual Result

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions