lemon-dusk-74763
12/30/2023, 1:17 AMidentify API in the Node SDK. I am seeing that the data I pass in the traits property of the parameter to identify appear twice in the payload that I see in the live event stream I see in the Rudderstack dashboard. They are in the root traits object and repeated in context.traits. Here is an example payload (all of the data was created by faker):
{
"_metadata": {
"nodeVersion": "18.19.0"
},
"channel": "server",
"context": {
"library": {
"name": "analytics-node",
"version": "2.0.6"
},
"traits": {
"createdAt": "2023-12-29T18:07:20.013Z",
"email": "nellie.daugherty@example.com",
"firstName": "Nellie",
"inactive": false,
"lastName": "Daugherty",
"middleName": "Legros",
"updatedAt": "2023-12-29T23:54:43.510Z"
}
},
"integrations": {
"All": true
},
"messageId": "fu",
"originalTimestamp": "2023-12-29T23:54:43.532Z",
"rudderId": "bar",
"sentAt": "2023-12-29T23:54:53.534Z",
"timestamp": "2023-12-29T23:54:43.529Z",
"traits": {
"createdAt": "2023-12-29T18:07:20.013Z",
"email": "nellie.daugherty@example.com",
"firstName": "Nellie",
"inactive": false,
"lastName": "Daugherty",
"middleName": "Legros",
"updatedAt": "2023-12-29T23:54:43.510Z"
},
"type": "identify",
"userId": "23b8b69c-2663-4f29-8f31-aa4698418447"
}
I see the same duplicated properties in my data warehouse. The data appears to be correct but it seems wasteful and pointless to duplicate it. How can I avoid this duplication? Thanks!millions-activity-52391
12/30/2023, 1:17 AMhundreds-lifeguard-65770
12/30/2023, 10:51 AMlemon-dusk-74763
12/30/2023, 2:49 PMlemon-dusk-74763
12/30/2023, 3:04 PMtrack calls, which seems to make sense given that I am using the Node JS SDK. Anyway, certainly not a big deal but I still struggle to see the value of duplicating the traits dictionary in the identify events. Thanks.millions-activity-52391
01/02/2024, 11:53 AM