Skip to content

Commit

Permalink
Adding poetry to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ADIMANV committed Sep 20, 2024
1 parent 149a93e commit d8ea310
Show file tree
Hide file tree
Showing 3 changed files with 695 additions and 677 deletions.
11 changes: 11 additions & 0 deletions database-cleanup/database_cleanup/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os
import time
import uuid
import sentry_sdk

import click
import sqlalchemy as sa
Expand All @@ -18,6 +19,16 @@

_log = logging.getLogger(__name__)

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

sentry_sdk.set_tag("app_name", "pv-site-production")
sentry_sdk.set_tag("version", pvsite_datamodel.__version__)



@contextlib.contextmanager
def _profile(msg: str):
Expand Down
Loading

0 comments on commit d8ea310

Please sign in to comment.