Skip to content

[Draft] Update awssqs.go with extra logging before calling AWS SDK.#347

Open
viv-ng wants to merge 5 commits intoargoproj:masterfrom
viv-ng:viv-ng-aws-logging
Open

[Draft] Update awssqs.go with extra logging before calling AWS SDK.#347
viv-ng wants to merge 5 commits intoargoproj:masterfrom
viv-ng:viv-ng-aws-logging

Conversation

@viv-ng
Copy link
Copy Markdown

@viv-ng viv-ng commented Nov 25, 2024

  • Added more logging to see what input we are calling AWS methods with.
  • Added some comment.

@viv-ng viv-ng force-pushed the viv-ng-aws-logging branch 2 times, most recently from 2103945 to 2d57c71 Compare November 25, 2024 23:30
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.14%. Comparing base (f485671) to head (8beb552).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
+ Coverage   55.35%   56.14%   +0.79%     
==========================================
  Files          35       35              
  Lines        3438     3644     +206     
==========================================
+ Hits         1903     2046     +143     
- Misses       1256     1293      +37     
- Partials      279      305      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…Message().

Added more logging to see what input we are calling AWS methods with.

Signed-off-by: Vivien Ng <vivienn@zillowgroup.com>
Signed-off-by: Vivien Ng <vivienn@zillowgroup.com>
Signed-off-by: Vivien Ng <vivienn@zillowgroup.com>
Signed-off-by: Vivien Ng <vivienn@zillowgroup.com>
@viv-ng viv-ng force-pushed the viv-ng-aws-logging branch from 912ef48 to 8beb552 Compare November 27, 2024 07:29
Signed-off-by: Vivien Ng <vivienn@zillowgroup.com>
if input.QueueOwnerAWSAccountId != nil {
accountIdStr = ", account_id: " + *input.QueueOwnerAWSAccountId
}
log.Infof("[GetQueueUrl] queue_name: %s%s", *input.QueueName, accountIdStr)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not to paste account_id as part of template, why you need to build string separately?

return err
}

// 'sendMessageInput()' provides queueUrl, message
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not write such comments, code itself selfdescriptive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants