-
Notifications
You must be signed in to change notification settings - Fork 83
feat(eventbuilder): Track attributes with valid attribute types #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -43,4 +45,8 @@ module.exports = { | |||
throw new Error(sprintf(ERROR_MESSAGES.INVALID_ATTRIBUTES, MODULE_NAME)); | |||
} | |||
}, | |||
|
|||
isAttributeValid: function(attributeKey, attributeValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to update attribute value 'null' shouldn't be sent to logtier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
type: CUSTOM_ATTRIBUTE_FEATURE_TYPE, | ||
value: attributes[attributeKey], | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we log a message if isAttributeValid
returns false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not, because attributes are omitted for log tier, nothing to deal at user side. User will get all attributes. it will be confusing if logtier message is logged.
key: "integer_key" | ||
}, { | ||
id: "808797686", | ||
key: "double_key" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can we fix the indentation?
No description provided.