Skip to content

Commit

Permalink
Sentry update to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ADIMANV committed Sep 23, 2024
1 parent da6abce commit 67d1aae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gradboost_pv/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@
logging.getLogger("fsspec").setLevel(logging.INFO)
logging.getLogger("s3fs").setLevel(logging.INFO)

sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN"),
environment=os.getenv("ENVIRONMENT", "local"),
traces_sample_rate=1
)

sentry_sdk.set_tag("app_name", "uk_pv_national_xg")
sentry_sdk.set_tag("version", gradboost_pv.__version__)


@click.command()
@click.option(
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ s3fs
testcontainers
psutil
ocf-ml-metrics
sentry-sdk==2.13.0

0 comments on commit 67d1aae

Please sign in to comment.