From 254a5d90c12fd8216bb79041118afa38cb5b658d Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 9 Feb 2024 13:13:13 -0500 Subject: [PATCH] chore: use send_event instead of custom metadata --- eventtracking/backends/event_bus.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/eventtracking/backends/event_bus.py b/eventtracking/backends/event_bus.py index 97b41d3..7825ff1 100644 --- a/eventtracking/backends/event_bus.py +++ b/eventtracking/backends/event_bus.py @@ -48,13 +48,6 @@ def send(self, event): data=data, context=context, ) - metadata = TRACKING_EVENT_EMITTED.generate_signal_metadata() - get_producer().send( - signal=TRACKING_EVENT_EMITTED, - topic="analytics", - event_key_field="tracking_log.name", - event_data={"tracking_log": tracking_log}, - event_metadata=metadata, - ) + TRACKING_EVENT_EMITTED.send_event(tracking_log=tracking_log) logger.info(f"Tracking log {tracking_log.name} emitted to the event bus.")