File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
packages/destination-actions/src/destinations Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments