Skip to content

Commit

Permalink
Fix: make sentry work on both DEBUG modes
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 19, 2025
1 parent 2c63f3e commit e853c01
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions manage_content_service/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
permission_classes=(permissions.AllowAny,),
)

if not settings.DEBUG:
sentry_sdk.init(
get_environment_var('SENTRY_DNS', None),
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,
)
sentry_sdk.init(
get_environment_var('SENTRY_DNS', None),
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,
)

urlpatterns = [
path('health-check/', health_check, name='health_check'),
Expand Down

0 comments on commit e853c01

Please sign in to comment.