Skip to content

Commit

Permalink
Merge pull request #132 from openclimatefix/Sentry-update-to-the-code
Browse files Browse the repository at this point in the history
Minor sentry update to the existing code
  • Loading branch information
peterdudfield authored Sep 23, 2024
2 parents 9303993 + 2e36a87 commit 245aff9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pvnet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from pvnet.models.base_model import BaseModel as PVNetBaseModel
import sentry_sdk


import pvnet_app
from pvnet_app.config import get_union_of_configs, load_yaml_config, save_yaml_config
from pvnet_app.data.nwp import download_all_nwp_data, preprocess_nwp_data
Expand All @@ -34,12 +33,13 @@

# sentry
sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN", ""),
environment=f'{os.getenv("ENVIRONMENT", "local")}',
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
dsn=os.getenv("SENTRY_DSN"),
environment=os.getenv("ENVIRONMENT", "local"),
traces_sample_rate=1
)

sentry_sdk.set_tag("app_name", "pvnet_app")
sentry_sdk.set_tag("version", pvnet_app.__version__)

# ---------------------------------------------------------------------------
# GLOBAL SETTINGS
Expand Down

0 comments on commit 245aff9

Please sign in to comment.