Skip to content

Commit

Permalink
Split sentry envs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilldotdev committed Jan 9, 2025
1 parent ac52749 commit cc705b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ def load_env(db):

# start sentry
sentry_dsn = os.getenv("SENTRY_DSN")
sentry_env = "production" if db == "PROD" else "staging"
if sentry_dsn:
sentry_sdk.init(
dsn=sentry_dsn, traces_sample_rate=1.0, profiles_sample_rate=1.0
dsn=sentry_dsn,
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
environment=sentry_env,
)

# load api keys
Expand Down

0 comments on commit cc705b4

Please sign in to comment.