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

404s in CKAN are reported to New Relic as individual events #1273

Open
adborden opened this issue Jan 6, 2020 · 0 comments
Open

404s in CKAN are reported to New Relic as individual events #1273

adborden opened this issue Jan 6, 2020 · 0 comments
Labels
bug Software defect or bug component/inventory Inventory playbooks/roles

Comments

@adborden
Copy link
Contributor

adborden commented Jan 6, 2020

New Relic notified us that there were a large number of unique transactions being produced on inventory. This was caused by a third-party pen test or scan. However, the 404 controller could be improved so that these routes aren't reported to NR as unique events.

From New Relic support:

It looks like those requests resulted in redirects - is the app able to call https://docs.newrelic.com/docs/agents/python-agent/python-agent-api/set_transaction_name when that happens? That way you could group those accordingly.

How to reproduce

  1. Open your browser to https://inventory.data.gov/.well-known to produce a 404.
  2. In New Relic, open the transactions table

Expected behavior

404 routes are grouped together under the 404 controller.

Actual behavior

Many routes are listed as unique transactions, e.g. /.well-known

@adborden adborden added component/inventory Inventory playbooks/roles bug Software defect or bug labels Jan 6, 2020
@btylerburton btylerburton moved this from 📥 Queue to 🧊 Icebox in data.gov team board Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug component/inventory Inventory playbooks/roles
Projects
Status: 🧊 Icebox
Development

No branches or pull requests

1 participant