Skip to content

Commit 6f34220

Browse files
committed
testing tracking CI --> sentry
1 parent 590048a commit 6f34220

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ env:
3232
- PIP_QUIET=1
3333
- SENTRY_LIGHT_BUILD=1
3434
- SENTRY_SKIP_BACKEND_VALIDATION=1
35+
- SENTRY_DSN=https://[email protected]/282218
3536
- MIGRATIONS_TEST_MIGRATE=0
3637
# Use this to override the django version in the requirements file.
3738
- DJANGO_VERSION=">=1.10,<1.11"

src/sentry/conf/server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,12 @@ def get_sentry_sdk_config():
14451445

14461446
SENTRY_SDK_CONFIG = get_sentry_sdk_config()
14471447

1448+
dsn_from_env = os.environ.get("SENTRY_DSN")
1449+
if dsn_from_env:
1450+
SENTRY_SDK_CONFIG["dsn"] = dsn_from_env
1451+
SENTRY_FRONTEND_DSN = dsn_from_env
1452+
1453+
14481454
# Callable to bind additional context for the Sentry SDK
14491455
#
14501456
# def get_org_context(scope, organization, **kwargs):

0 commit comments

Comments
 (0)