SPIKE: diagnose and find fix for NR agent error on 404 response - bump newrelic agent to latest #1032
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA Ticket:
BB2-1417
User Story or Bug Summary:
Context:
On deployment environment with Django upgrade 3.2.14: TEST, SBX, there are errors present in New Relic (see captured stack), this is new on Django upgrade deployment.
To reproduce:
Any URL pointing to the BB2 site with a non-exist path will trigger this error, example URLs are but not limited to:
https://test.bluebutton.cms.gov/kkkkkkkkkkkkkkkkkk
https://sandbox.bluebutton.cms.gov/lllllllllllllllllllllll
As shown by error stack, the request handling path which triggered the python TypeError is not in BB2 code, but originated from 3rd party code: new relic packages, and axes packages are involved.
This needs to be triaged and a fix found to make NR errors log clean
Suspicious area of problem: NewRelic agent vs Django-axes inconsistency
AC:
the root cause identified and a fix found.
What Does This PR Do?
The fix must be in the newrelic python package itself - since we don't have good ways to fix a third party inconsistency with Django 3.2.
the issue was found with a pretty old version of newrelic agent (version 4.4.1.* released 2018)
Bumping the python newrelic agent to the latest version (7.16.0.178 release 2022 July) is likely fix the issue.
What Should Reviewers Watch For?
If you're reviewing this PR, please check these things, in particular:
What Security Implications Does This PR Have?
Submitters should complete the following questionnaire:
What Needs to Be Merged and Deployed Before this PR?
This PR cannot be either merged or deployed until the following pre-requisite changes have been fully deployed:
Any Migrations?
Submitter Checklist
I have gone through and verified that...:
README
updates and changelog / release notes entries.TODO
and/orFIXME
comments, which include a JIRA ticket ID for any items that require urgent attention.