Skip to content

Commit

Permalink
feat(CoGS): Add shared-resources-usage topic to Snuba validation (#4752)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kumar-saini authored Sep 26, 2023
1 parent 6751599 commit 9790335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions snuba/settings/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def validate_settings(locals: Mapping[str, Any]) -> None:
"snuba-dead-letter-group-attributes",
"snuba-generic-events-commit-log",
"snuba-spans",
"shared-resources-usage",
}

for key in locals["KAFKA_TOPIC_MAP"].keys():
Expand Down
2 changes: 2 additions & 0 deletions snuba/utils/streams/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class Topic(Enum):
DEAD_LETTER_GROUP_ATTRIBUTES = "snuba-dead-letter-group-attributes"
SPANS = "snuba-spans"

COGS_SHARED_RESOURCES_USAGE = "shared-resources-usage"


def get_topic_creation_config(topic: Topic) -> Mapping[str, str]:
config = {
Expand Down

0 comments on commit 9790335

Please sign in to comment.