chore(sentry): remove Sentry

This commit is contained in:
2024-11-28 20:54:36 +00:00
parent c04d23f85d
commit 9ea669f0fa
6 changed files with 4 additions and 36 deletions

View File

@ -11,11 +11,6 @@ class Config:
self.__environment: str = os.environ.get("APP_LIFECYCLE", "DEV").upper()
self.__version: str = os.environ["APP_VERSION"]
self.__webex_token: str = os.environ["WEBEX_API_KEY"]
self.__sentry_dsn: str = os.environ.get("SENTRY_DSN", "")
self.__sentry_enabled: bool = bool(
os.environ.get("SENTRY_ENABLED", "False").upper() == "TRUE"
and self.__sentry_dsn != ""
)
@property
def environment(self) -> str:
@ -27,19 +22,6 @@ class Config:
"""Returns the current app version."""
return self.__version
@property
def sentry_enabled(self) -> bool:
"""Returns True if Sentry SDK is enabled, else False."""
return self.__sentry_enabled
@property
def sentry_dsn(self) -> str:
"""Returns the Sentry DSN value if Sentry SDK is enabled AND
Sentry DSN is set, else blank string."""
if not self.__sentry_enabled:
return ""
return self.__sentry_dsn
@property
def webex_token(self) -> str:
"""Returns the Webex API key."""