Skip to content

Commit

Permalink
chore: use send_event instead of custom metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Feb 9, 2024
1 parent 93dfaa4 commit 98ac6a0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions eventtracking/backends/event_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit 98ac6a0

Please sign in to comment.