"""New Relic utility functions.""" import newrelic.agent def track_custom_parameters(**custom_parameters): """ Send New Relic custom attributes for each request. Args: dict: A dict of custom attributes to send to New Relic The key is the name of the attribute, the value is the value of the attribute. """ for k, v in custom_parameters.items(): newrelic.agent.add_custom_parameter(k, v)