Skip to content
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

Bugfix: Dynamodb instrumentation access_key_id error on some credential classes #2684

Merged
merged 10 commits into from
Jun 6, 2024

Conversation

tannalynn
Copy link
Contributor

@tannalynn tannalynn commented Jun 3, 2024

Not all aws credentials are credentials, but they do all seem to include credentials, so I've updated it to do credentials.credentials instead, which should work. I also added more safety/checks so that it won't cause an error and will just simply not try to make an arn if it doesn't have access to the necessary info.

lib/new_relic/agent/aws.rb Outdated Show resolved Hide resolved
def get_arn(params)
return unless params[:table_name]
return unless params[:table_name] && nr_account_id
Copy link
Contributor Author

Choose a reason for hiding this comment

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

table name though could change every time the client makes a call jsyk

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Kayla Reopelle (she/her) <[email protected]>
@tannalynn tannalynn marked this pull request as ready for review June 6, 2024 18:06
@tannalynn tannalynn requested a review from hannahramadan as a code owner June 6, 2024 18:06
Copy link
Contributor

github-actions bot commented Jun 6, 2024

SimpleCov Report

Coverage Threshold
Line 93.79% 93%
Branch 70.93% 50%

@tannalynn tannalynn merged commit 0a8244b into dev Jun 6, 2024
32 checks passed
@tannalynn tannalynn deleted the bugfix_aws_dynamodb_credentials_error branch November 1, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Logs full of undefined method `access_key_id'
3 participants