Skip to content

Commit 0ff1ceb

Browse files
committed
LR/TTD Migrate from Tags to Custom Headers
1 parent 4c185df commit 0ff1ceb

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

packages/destination-actions/src/destinations/liveramp-audiences/awsClient.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ export const sendEventToAWS = async (input: SendToAWSRequest) => {
9494
// Get S3 Client for Outbound Controller
9595
const s3Client = getS3Client('integrationsOutboundController')
9696

97-
// Add Row Count to the File Chunk for Observability
98-
const urlEncodedTags = new URLSearchParams({
99-
row_count: `${input.rowCount}`
100-
}).toString()
101-
10297
await Promise.all([
10398
// Upload user data to the S3 bucket
10499
s3Client.send(
@@ -107,7 +102,11 @@ export const sendEventToAWS = async (input: SendToAWSRequest) => {
107102
Key: userdataFilePath,
108103
Body: input.fileContents,
109104
ContentType: 'text/csv',
110-
Tagging: urlEncodedTags
105+
106+
// Add Row Count to the File Chunk for Observability
107+
Metadata: {
108+
'row-count': `${input.rowCount}`
109+
}
111110
})
112111
),
113112

packages/destination-actions/src/destinations/the-trade-desk-crm/awsClient.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ export const sendEventToAWS = async (input: SendToAWSRequest) => {
5454
// Get S3 Client for Outbound Controller
5555
const s3Client = getS3Client('integrationsOutboundController')
5656

57-
// Add Row Count to the File Chunk for Observability
58-
const urlEncodedTags = new URLSearchParams({
59-
row_count: `${input.RowCount}`
60-
}).toString()
61-
6257
await Promise.all([
6358
// Upload user data to the S3 bucket
6459
s3Client.send(
@@ -67,7 +62,11 @@ export const sendEventToAWS = async (input: SendToAWSRequest) => {
6762
Key: userdataFilePath,
6863
Body: input.UsersFormatted,
6964
ContentType: 'text/csv',
70-
Tagging: urlEncodedTags
65+
66+
// Add Row Count to the File Chunk for Observability
67+
Metadata: {
68+
'row-count': `${input.RowCount}`
69+
}
7170
})
7271
),
7372

0 commit comments

Comments
 (0)