Skip to content

Commit f2883c3

Browse files
authored
ref(cells): Introduce new cell config keys (#111749)
introduce config that isn't used yet. once this config is set in prod, we can flip usages in the codebase
1 parent bcee2ef commit f2883c3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/sentry/conf/server.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,18 +752,22 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
752752
# An enum is better because there shouldn't be multiple "modes".
753753
SENTRY_MODE = SentryMode.SELF_HOSTED
754754

755-
# If this instance is a region silo, which region is it running in?
756-
SENTRY_REGION = os.environ.get("SENTRY_REGION", None)
755+
# If this instance is a cell silo, which cell is it running in?
756+
SENTRY_LOCAL_CELL = os.environ.get("SENTRY_REGION", None)
757757

758758
# Returns the customer single tenant ID.
759759
CUSTOMER_ID = os.environ.get("CUSTOMER_ID", None)
760760

761761
# List of the available cells (e.g. "us1", "us2", "de1")
762-
SENTRY_REGION_CONFIG: list[CellConfig] = []
762+
SENTRY_CELLS: list[CellConfig] = []
763763

764764
# Mapping of localities (e.g. "us", "de") to their constituent cells (e.g. "us1", "us2")
765765
SENTRY_LOCALITIES: list[LocalityConfig] = []
766766

767+
# TODO(cells): Superceded by SENTRY_LOCAL_CELL and SENTRY_CELLS. Remove once migration is complete.
768+
SENTRY_REGION = os.environ.get("SENTRY_REGION", None)
769+
SENTRY_REGION_CONFIG: list[CellConfig] = []
770+
767771
# Shared secret used to sign cross-region RPC requests.
768772
RPC_SHARED_SECRET: list[str] | None = None
769773

0 commit comments

Comments
 (0)