Skip to content

Commit

Permalink
Update sentry init to include environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Oct 8, 2024
1 parent eb52dc7 commit 8de07be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.3.5
====================
* Updated sentry init to include environment tag.

0.3.4 (2024-08-23)
====================
* Introduced init_sentry function for staging and production.
Expand Down
1 change: 1 addition & 0 deletions ctlsettings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ def init_sentry(sentry_dsn: str) -> None:
sentry_sdk.init(
dsn=sentry_dsn,
integrations=[DjangoIntegration()],
environment='production',
)
1 change: 1 addition & 0 deletions ctlsettings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ def init_sentry(sentry_dsn: str) -> None:
dsn=sentry_dsn,
integrations=[DjangoIntegration()],
debug=True,
environment='staging',
)

0 comments on commit 8de07be

Please sign in to comment.