Skip to content

Remove new relic from API#2828

Open
ben851 wants to merge 3 commits intomainfrom
remove-new-relic
Open

Remove new relic from API#2828
ben851 wants to merge 3 commits intomainfrom
remove-new-relic

Conversation

@ben851
Copy link
Copy Markdown
Contributor

@ben851 ben851 commented Apr 2, 2026

Summary | Résumé

Since we've switched to Signoz, we no longer need new relic in API.

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

Smoke test staging

Release Instructions | Instructions pour le déploiement

None.

Reviewer checklist | Liste de vérification du réviseur

  • This PR does not break existing functionality.
  • This PR does not violate GCNotify's privacy policies.
  • This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
  • This PR does not significantly alter performance.
  • Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

@ben851 ben851 requested a review from jimleroyer as a code owner April 2, 2026 17:20
Copilot AI review requested due to automatic review settings April 2, 2026 17:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the New Relic APM agent from the API now that telemetry has moved to SigNoz/OTel, including runtime initialization paths and dependency/config cleanup.

Changes:

  • Removed New Relic initialization/wrapping from Gunicorn, Lambda (application.py), and Celery startup.
  • Dropped newrelic from Poetry dependencies and removed its lockfile entries.
  • Deleted New Relic-specific config and build/deploy wiring (INI, Lambda entry script env, staging workflow Dockerfile selection).

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
run_celery.py Removes New Relic init from Celery runner.
pyproject.toml Drops newrelic dependency.
poetry.lock Removes locked newrelic package metadata and updates content hash.
newrelic.ini Deletes New Relic agent configuration file.
mypy.ini Removes newrelic mypy ignore section.
gunicorn_config.py Removes New Relic env defaults and init logic; updates related comment.
ci/Dockerfile.lambda Removes manual New Relic installation step from Lambda image build.
bin/entry.sh Removes New Relic Lambda-specific environment configuration.
application.py Removes New Relic Lambda detection/init and WSGI wrapper.
.github/workflows/lambda_staging.yml Simplifies build step to always use ci/Dockerfile.lambda (no New Relic toggle).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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