Updated sentry modal SDK

Specified default environment for issues
This commit is contained in:
Théo DURR 2022-08-27 18:46:22 +02:00
parent 7a914f5e94
commit 4f9c2724f5
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
2 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,11 @@
{% extends "core/base.jinja" %}
{% block head %}
{{ super() }}
<script src="{{ static('core/js/sentry/bundle.min.js') }}" crossorigin="anonymous"></script>
<script
src="https://browser.sentry-cdn.com/7.11.1/bundle.min.js"
integrity="sha384-qcYSo5+/E8hEkPmHFa79GRDsGT84SRhBJHRw3+dbQyh0UwueiFP1jCsRBClEREcs"
crossorigin="anonymous"
></script>
{% endblock head %}
{% block content %}

View File

@ -675,7 +675,11 @@ if "test" in sys.argv:
if SENTRY_DSN:
# Connection to sentry
sentry_sdk.init(dsn=SENTRY_DSN, integrations=[DjangoIntegration()])
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()],
environment="production",
)
SITH_FRONT_DEP_VERSIONS = {