Skip to content

Commit

Permalink
add LogAppendTime
Browse files Browse the repository at this point in the history
  • Loading branch information
MeredithAnya committed Sep 24, 2021
1 parent 8359ff3 commit 64fe3d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snuba/utils/streams/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class Topic(Enum):


def get_topic_creation_config(topic: Topic) -> Mapping[str, str]:
config = {Topic.EVENTS: {"message.timestamp.type": "LogAppendTime"}}
config = {
Topic.EVENTS: {"message.timestamp.type": "LogAppendTime"},
Topic.METRICS: {"message.timestamp.type": "LogAppendTime"},
}
if settings.ENABLE_SESSIONS_SUBSCRIPTIONS:
config.update({Topic.SESSIONS: {"message.timestamp.type": "LogAppendTime"}})
return config.get(topic, {})

0 comments on commit 64fe3d4

Please sign in to comment.