qshub / utils /observability.py
basel00omar's picture
THE QS HUB v2.0 - Complete React + FastAPI Platform (clean deploy)
1b4b6d2
Raw History Blame Contribute Delete
344 Bytes
"""Production observability setup."""
from __future__ import annotations
from utils.settings import get_setting
def init_observability() -> None:
dsn = get_setting("SENTRY_DSN")
if not dsn:
return
try:
import sentry_sdk
sentry_sdk.init(dsn=dsn, traces_sample_rate=0.1)
except Exception:
pass