Skip to content
Snippets Groups Projects
Verified Commit 292ec56b authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Update Sentry init

parent e9832a49
No related branches found
No related tags found
1 merge request!245Feature/distinguish public private hostname
Pipeline #88282 canceled
......@@ -47,8 +47,10 @@ def init_cli_app() -> typer.Typer:
def init_sentry() -> None:
"""Only initialize Sentry if not in testing mode."""
if os.getenv("TESTING", "false").lower() == "false" and (oss_params := load_oss_params()):
sentry_sdk.init(dsn=oss_params.SENTRY.DSN, environment=oss_params.GENERAL.environment, traces_sample_rate=1.0)
if os.getenv("TESTING", "false").lower() == "false" and (sentry_params := load_oss_params().SENTRY):
sentry_sdk.init(
dsn=sentry_params.DSN, environment=load_oss_params().GENERAL.environment, traces_sample_rate=1.0
)
init_sentry()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment