Skip to content
Snippets Groups Projects

Added sentry SDK

Merged Neda Moeini requested to merge feature/add-sentry-sdk into develop
+ 8
0
"""The main entrypoint for :term:`GSO`, and the different ways in which it can be run."""
import sentry_sdk
import typer
from orchestrator import OrchestratorCore, app_settings
from orchestrator.cli.main import app as cli_app
@@ -15,6 +16,13 @@ from gso.graphql_api.types import GSO_SCALAR_OVERRIDES
SCALAR_OVERRIDES.update(GSO_SCALAR_OVERRIDES)
sentry_sdk.init(
dsn="https://2b0b82245bfa6631041802c997ed8b58@test-observer01.geant.org/3",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
traces_sample_rate=1.0,
)
def init_gso_app() -> OrchestratorCore:
"""Initialise the :term:`GSO` app."""
Loading