From e384baa16a8283d8b8bfd5c3278e969945bf5db5 Mon Sep 17 00:00:00 2001 From: Lyn Nagara Date: Mon, 4 Mar 2024 15:06:00 -0800 Subject: [PATCH] ref: Move topics to new-style of Kafka topic definition Just moving 3 consumers as a first step, will migrate the rest as a follow up. --- src/sentry/consumers/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sentry/consumers/__init__.py b/src/sentry/consumers/__init__.py index 1f4788fe70b247..a0d72d4b8760a9 100644 --- a/src/sentry/consumers/__init__.py +++ b/src/sentry/consumers/__init__.py @@ -196,16 +196,16 @@ def ingest_events_options() -> list[click.Option]: # string. We support both currently for backward compatibility. KAFKA_CONSUMERS: Mapping[str, ConsumerDefinition] = { "ingest-profiles": { - "topic": settings.KAFKA_PROFILES, + "topic": Topic.PROFILES, "strategy_factory": "sentry.profiles.consumers.process.factory.ProcessProfileStrategyFactory", }, "ingest-replay-recordings": { - "topic": settings.KAFKA_INGEST_REPLAYS_RECORDINGS, + "topic": Topic.INGEST_REPLAYS_RECORDINGS, "strategy_factory": "sentry.replays.consumers.recording.ProcessReplayRecordingStrategyFactory", "click_options": ingest_replay_recordings_options(), }, "ingest-replay-recordings-buffered": { - "topic": settings.KAFKA_INGEST_REPLAYS_RECORDINGS, + "topic": Topic.INGEST_REPLAYS_RECORDINGS, "strategy_factory": "sentry.replays.consumers.recording_buffered.RecordingBufferedStrategyFactory", "click_options": ingest_replay_recordings_buffered_options(), },