From 9928525cf95f98e2587000c7cc1b97133615d6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Tue, 12 Apr 2022 09:04:57 +0200 Subject: [PATCH] Only send enum name for events intead of the full class.enum --- app/events/auth_event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/events/auth_event.py b/app/events/auth_event.py index 2ed9296e..492c4e89 100644 --- a/app/events/auth_event.py +++ b/app/events/auth_event.py @@ -20,7 +20,7 @@ class LoginEvent: def send(self): newrelic.agent.record_custom_event( - "LoginEvent", {"action": self.action, "source": self.source} + "LoginEvent", {"action": self.action.name, "source": self.source.name} ) @@ -42,5 +42,5 @@ class RegisterEvent: def send(self): newrelic.agent.record_custom_event( - "RegisterEvent", {"action": self.action, "source": self.source} + "RegisterEvent", {"action": self.action.name, "source": self.source.name} )