Skip to main content

How do I resolve <unlabeled events> in Sentry?

Updated over a month ago

Issue

I am seeing <unlabeled event> entries in Sentry (React JS/web app), and I am unsure why these events are not being labeled correctly.

Resolution

Common Causes of <unlabeled event> Entries:

  1. Missing Data in Events:

    • <unlabeled event> occurs when events lack the information Sentry uses to generate labels, such as:

      • Exception information for error events.

      • Message information for info events.

  2. Custom beforeSend Logic:

    • If you are using a beforeSend callback, verify that it is not modifying or removing critical event data (e.g., exceptions).

    • Misconfigured scrubbing logic in beforeSend can inadvertently strip event details, resulting in unlabeled events.

  3. Old SDK Versions or Manual Event Reporting:

    • Ensure you are using the latest version of the Sentry JavaScript SDK.

    • Events sent using outdated SDK versions, the API, or manual SDK calls may lack required fields.

Steps to Resolve:

  1. Update to the Latest SDK Version:

    • Confirm that your application is using the latest version of the Sentry JavaScript SDK.

  2. Check for Custom beforeSend Logic:

    • Review the beforeSend callback in your Sentry.init configuration.

    • Temporarily disable the beforeSend logic to see if it resolves the issue.

  3. Contact Support:

    • If the issue persists after trying the above steps, reach out to Sentry support for further assistance.

Did this answer your question?