Skip to content

Commit

Permalink
audit_years is a special case because they're ints
Browse files Browse the repository at this point in the history
  • Loading branch information
timoballard committed Feb 9, 2024
1 parent 5e73413 commit f88eedc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/dissemination/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ def _add_search_params_to_newrelic(search_parameters):
"uei_or_eins",
"alns",
"names",
"audit_years",
]

newrelic.agent.add_custom_attributes([
(f"request.search.{k}", ",".join(str(search_parameters[k]))) for k in multis
(f"request.search.{k}", ",".join(search_parameters[k])) for k in multis
])

newrelic.agent.add_custom_attribute("audit_years", ",".join([str(ay) for ay in search_parameters["audit_years"]]))


def include_private_results(request):
"""
Expand Down

0 comments on commit f88eedc

Please sign in to comment.