Skip to content

Commit

Permalink
event not dropped if username, email or id is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Sep 22, 2021
1 parent c3d146d commit 5c91e25
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions integrations/Sentry/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ class Sentry {
get(rudderElement.message, "traits.ip_address") ||
get(rudderElement.message, "context.traits.ip_address");

if (!userId && !email && !name && !ipAddress) {
// if no user identification property is present the event will be dropped
logger.debug(
"Any one of userId, email, name and ip_address is mandatory"
);
return;
}
const userIdentifierPayload = identifierPayloadBuilder(
userId,
email,
Expand Down

0 comments on commit 5c91e25

Please sign in to comment.