Skip to content

Commit

Permalink
fix #4210 chore(nimbus): use separate sentry dsn for nimbus ui (#5080)
Browse files Browse the repository at this point in the history
Because

* We'd like to track Nimbus UI as a separate Sentry project

This commit

* Adds a second Sentry DSN just for Nimbus UI
  • Loading branch information
jaredlockhart committed Apr 21, 2021
1 parent e104b27 commit baf0b50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ REDIS_HOST=redis
REDIS_PORT=6379
SECRET_KEY=SOMETHINGSECURE
SENTRY_DSN=
SENTRY_DSN_NIMBUS_UI=
SKIP_REVIEW_ACCESS_CONTROL_FOR_DEV_USER=true
STATSD_BACKEND=markus.backends.logging.LoggingMetrics
STATSD_HOST=
STATSD_PORT=
STATSD_PREFIX=experimenter
USE_GOOGLE_ANALYTICS=false
USE_GOOGLE_ANALYTICS=false
2 changes: 1 addition & 1 deletion app/experimenter/base/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def features(request):
"APP_CONFIG": urllib.parse.quote(
json.dumps(
{
"sentry_dsn": settings.SENTRY_DSN,
"sentry_dsn": settings.SENTRY_DSN_NIMBUS_UI,
"graphql_url": reverse("nimbus-api-graphql"),
}
)
Expand Down
1 change: 1 addition & 0 deletions app/experimenter/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@

# Sentry configuration
SENTRY_DSN = config("SENTRY_DSN", default=None)
SENTRY_DSN_NIMBUS_UI = config("SENTRY_DSN_NIMBUS_UI", default=None)
if SENTRY_DSN: # pragma: no cover
RAVEN_CONFIG = {
"dsn": SENTRY_DSN,
Expand Down

0 comments on commit baf0b50

Please sign in to comment.