Skip to content

Commit

Permalink
chore: add event type to metric
Browse files Browse the repository at this point in the history
  • Loading branch information
cquintana92 committed Sep 19, 2024
1 parent 7426129 commit 3ff6144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/events/event_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def send_event(

serialized = event.SerializeToString()
dispatcher.send(serialized)
newrelic.agent.record_custom_event("EventStoredToDb")

event_type = content.WhichOneof("content")
newrelic.agent.record_custom_event("EventStoredToDb", {"type": event_type})
LOG.i("Sent event to the dispatcher")

@staticmethod
Expand Down

0 comments on commit 3ff6144

Please sign in to comment.