diff --git a/email_handler.py b/email_handler.py index 863a535d..7e0efb10 100644 --- a/email_handler.py +++ b/email_handler.py @@ -545,10 +545,12 @@ def apply_dmarc_policy( dmarc_result = get_dmarc_status(msg) if dmarc_result: newrelic.agent.record_custom_event( - "Custom/dmarc_check", {"result": dmarc_result.name} + newrelic.agent.record_custom_event( + "DmarcCheck", {"result": dmarc_result.name} + ) ) else: - newrelic.agent.record_custom_event("Custom/dmarc_check", {"result": "N/A"}) + newrelic.agent.record_custom_event("DmarcCheck", {"result": "N/A"}) if not DMARC_CHECK_ENABLED or not dmarc_result: return None