Commit 3f820f5e authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🍪

allow sentry to track what enviroment it was launched from

parent 01f6f094
Pipeline #2147 failed with stages
in 1 minute and 21 seconds
......@@ -196,11 +196,14 @@ REST_FRAMEWORK = {
# sentry
sentry = os.environ.get('SENTRY_DSN', False)
if sentry:
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
sentry_env = os.environ.get('SENTRY_ENV', 'unknown')
sentry_sdk.init(
dsn=sentry,
integrations=[DjangoIntegration()]
)
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
sentry_sdk.init(
dsn=sentry,
environment=sentry_env,
integrations=[DjangoIntegration()]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment